本章内容基于CentOS6.5(32位)

之前都是从网上下载文件,然后传到Linux服务器,想试试直接在服务器下载文件,于是学习wget。

安装wget

在安装之前确认当前Linux服务器能连接外网。

这里我用的是普通用户安装,发现安装不了

yum -y install wget

所以切换到root用户

su root

用户切换好后继续安装

yum -y install wget

[root@localhost /]# sudo yum -y install wget
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ap.stykers.moe
 * extras: ap.stykers.moe
 * updates: mirrors.njupt.edu.cn
base                                                                                                                                  | 3.7 kB     00:00     
extras                                                                                                                                | 3.3 kB     00:00     
updates                                                                                                                               | 3.4 kB     00:00     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package wget.i686 0:1.12-1.8.el6 will be updated
---> Package wget.i686 0:1.12-10.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                            Arch                               Version                                      Repository                          Size
=============================================================================================================================================================
Updating:
 wget                               i686                               1.12-10.el6                                  base                               483 k

Transaction Summary
=============================================================================================================================================================
Upgrade       1 Package(s)

Total download size: 483 k
Downloading Packages:
wget-1.12-10.el6.i686.rpm                                                                                                             | 483 kB     00:00     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
 Package: centos-release-6-5.el6.centos.11.1.i686 (@anaconda-CentOS-201311271240.i386/6.5)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : wget-1.12-10.el6.i686                                                                                                                     1/2 
  Cleanup    : wget-1.12-1.8.el6.i686                                                                                                                    2/2 
  Verifying  : wget-1.12-10.el6.i686                                                                                                                     1/2 
  Verifying  : wget-1.12-1.8.el6.i686                                                                                                                    2/2 

Updated:
  wget.i686 0:1.12-10.el6                                                                                                                                    

Complete!

安装信息最后显示Complete!则说明wget安装成功!

https://www.cnblogs.com/yuanchaoyong/p/9747073.html

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐