본문 바로가기

main/Server

[CentOS 7] wget 버전 업그레이드

wget 취약점 (CVE_2016-4971) 이 있다는 소식에 내 wget 버전을 확인해보았고

1.14이길래 최신버전으로 업그레이드를 하기로했다.

 

yum groupinstall "Development Tools" -y
yum install gcc glibc glibc-common gd gd-devel openssl -y
yum install glibc-devel glibc-headers kernel-headers kernel-devel gnutls-devel -y
cd /opt
wget https://ftp.gnu.org/gnu/wget/wget-1.20.3.tar.gz
tar -xzf wget-1.20.3.tar.gz
cd wget-1.20.3/
./configure
make && make install
cd src/
cp wget /usr/bin/wget  # 버전업이라 overwrite
cd ~/
wget --version | head -1

 

끝!

 

https://gist.github.com/M507/2846cc78914e955c6adb0d5483d3e8c4

https://www.linuxfromscratch.org/blfs/view/9.1/basicnet/wget.html

 

Wget-1.20.3

Command Explanations --sysconfdir=/etc: This relocates the configuration file from /usr/etc to /etc. --with-ssl=openssl: This allows the program to use openssl instead of GnuTLS-3.6.12. --enable-valgrind-tests: This allows the tests to be run under valgrin

www.linuxfromscratch.org

https://www.anillabs.com/2014/11/install-or-upgrade-wget-in-ubuntu-or-centos/