在太阳下
不管你喜不喜欢,高不高兴,爱与不爱;太阳照旧照耀着你!温暖着你!

Linux 安装 wget

Linux 安装 wget
TIME 2019-08-09 周四 12:04

一般linux最小安装的时候,wget往往是不会被包含系统里面的
所以当你遇到以下提示的时候,则说明系统没有安装wget

-bash: wget: command not found

提示没有找到命令,那就是说明系统还没有安装wget
如果是VPS的话,一般都有依赖库,所以直接用yum命令直接安装即可
运行以下命令安装wget

yum -y install wget

敲下回车键,返回以下结果

Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink | 16 kB 00:00:00
* base: mirrors.usc.edu
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: repos.lax.quadranet.com
* updates: repos.lax.quadranet.com
base | 3.6 kB 00:00:00
epel | 5.3 kB 00:00:00
extras | 3.4 kB 00:00:00
google-cloud-sdk/signature | 454 B 00:00:00
google-cloud-sdk/signature | 1.4 kB 00:00:00 !!!
google-compute-engine/signature | 454 B 00:00:00
google-compute-engine/signature | 1.4 kB 00:00:00 !!!
updates | 3.4 kB 00:00:00
(1/9): base/7/x86_64/group_gz | 166 kB 00:00:00
(2/9): epel/x86_64/group_gz | 88 kB 00:00:00
(3/9): base/7/x86_64/primary_db | 6.0 MB 00:00:00
(4/9): epel/x86_64/updateinfo | 994 kB 00:00:00
(5/9): extras/7/x86_64/primary_db | 215 kB 00:00:00
(6/9): epel/x86_64/primary_db | 6.8 MB 00:00:00
(7/9): updates/7/x86_64/primary_db | 7.4 MB 00:00:00
(8/9): google-cloud-sdk/primary | 116 kB 00:00:00
(9/9): google-compute-engine/primary | 3.9 kB 00:00:00
google-cloud-sdk 822/822
google-compute-engine 11/11
Resolving Dependencies
–> Running transaction check
—> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed
–> Finished Dependency ResolutionDependencies Resolved====================================================================================
Package Arch Version Repository Size
====================================================================================
Installing:
wget x86_64 1.14-18.el7_6.1 updates 547 kTransaction Summary
====================================================================================
Install 1 PackageTotal download size: 547 k
Installed size: 2.0 M
Downloading packages:
wget-1.14-18.el7_6.1.x86_64.rpm | 547 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wget-1.14-18.el7_6.1.x86_64 1/1
Verifying : wget-1.14-18.el7_6.1.x86_64 1/1

Installed:
wget.x86_64 0:1.14-18.el7_6.1

Complete!

看到以上字样表示安装完成

点击数:301

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
Verified by MonsterInsights