Centos下安装wget

本文介绍了在Centos操作系统下如何安装wget。首先,通过`rpm -qa | grep wget`命令检查wget是否已安装,如果没有,接着通过简单的步骤进行安装,当显示Complete表示安装成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. 查看是否安装了wget

rpm -qa | grep wget

[root@localhost tools]# rpm -qa | grep wget
[root@localhost tools]# 

2. 安装wget

[root@localhost tools]# yum -y install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.jdcloud.com
 * extras: mirror.jdcloud.com
 * updates: mirror.jdcloud.com
mysql57-community                                                                                                                    | 2.5 kB  00:00:00     
mysql57-community/x86_64/primary_db                                                                                                  | 187 kB  00:00:11     
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================
 Package                          Arch                               Version                                      Repository                           Size
============================================================================================================================================================
Installing:
 wget                             x86_64                             1.14-18.el7_6.1                              updates                             547 k

Transaction Summary
============================================================================================================================================================
Install  1 Package

Total download size: 547 k
Installed size: 2.0 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/updates/packages/wget-1.14-18.el7_6.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY 0 B  --:--:-- ETA 
Public key for wget-1.14-18.el7_6.1.x86_64.rpm is not installed
wget-1.14-18.el7_6.1.x86_64.rpm                                                                                                      | 547 kB  00:00:02     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-5.1804.el7.centos.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
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!
[root@localhost tools]# 

出现Complete 表示安装完成。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值