기준 : CentOS, yum이 설치되어있어함 (기본적으로 centos에는 들어있음)
1. CentOS에 Wget이 기본적으로 설치되어 있지 않기 때문에 해당 기능이 설치되어 있는지 확인
[root@localhost ~]# yum info wget |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [root@localhost ~]# yum info wget Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: data.nicehosting.co.kr * extras: data.nicehosting.co.kr * updates: data.nicehosting.co.kr Available Packages Name : wget Arch : x86_64 Version : 1.12 Release : 1.4.el6 Size : 481 k Repo : base Summary : A utility for retrieving files using the HTTP or FTP protocols URL : http://wget.sunsite.dk/ License : GPLv3+ and GFDL Description : GNU Wget is a file retrieval utility which can use either the HTTP or : FTP protocols. Wget features include the ability to work in the : background while you are logged out, recursive retrieval of : directories, file name wildcard matching, remote file timestamp : storage and comparison, use of Rest with FTP servers and Range with : HTTP servers to retrieve files over slow or unstable connections, : support for Proxy servers, and configurability. | cs |
2. 설치 방법
[root@localhost ~]# yum install wget -y |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | [root@localhost ~]# yum install wget -y ... (생략) ================================================================================= Package Arch Version Repository Size =================================================================================== Installing: wget x86_64 1.12-1.4.el6 base 481 k Transaction Summary =================================================================================== Install 1 Package(s) Total download size: 481 k Installed size: 1.8 M Downloading Packages: wget-1.12-1.4.el6.x86_64.rpm | 481 kB 00:00 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 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-3.el6.centos.9.x86_64 (@anaconda-CentOS-201207061011.x86_64/6.3) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : wget-1.12-1.4.el6.x86_64 1/1 Verifying : wget-1.12-1.4.el6.x86_64 1/1 Installed: wget.x86_64 0:1.12-1.4.el6 Complete! | cs |