WGET upgrade
Problem: After changing Apache from using Basic authentication to Digest on a Centos 4.5, I realized that for every request wget was making, it was generating errors on Apache's log (although the scripts were working fine).
This was due to a bug in wget-1.10.2, therefore, the next step was upgrading wget…
Go to the wget website and download the latest tarball and the maintainer's signature:
http://ftp.gnu.org/gnu/wget/
cd /usr/local/src
wget http://ftp.gnu.org/gnu/wget/wget-1.11.3.tar.bz2
wget http://ftp.gnu.org/gnu/wget/wget-1.11.3.tar.bz2.sig
Download the maintainer's public key from 2 sources if possible
https://savannah.gnu.org/users/micahcowan
http://wget.addictivecode.org/MicahCowan?action=AttachFile&do=view&target=micah.pub
Install the first public key in your computer
gpg --import public.key1
gpg --list-keys
Verify the tarball
gpg --verify wget-1.11.3.tar.bz2.sig wget-1.11.3.tar.bz2
gpg --fingerprint
Delete the key and install the second one
gpg --delete-key "Micah Cowan"
gpg --import public.key2
gpg --list-keys
gpg --verify wget-1.11.3.tar.bz2.sig wget-1.11.3.tar.bz2
gpg --fingerprint
Copy the verified tarball to /usr/loca/src in all other computers
Compile
cd /usr/local/src
tar -xvjf wget-1.11.3.tar.bz2
cd wget-1.11.3.tar.bz2
./configure
make
make install
Find the old wget
locate wget
which wget
whereis wget
Rename it
mv /usr/bin/wget /usr/bin/wget.DoNotUse
Link the one we have just created
ln -s /usr/local/bin/wget /usr/bin/
Check the wget's version
wget -V
Check your wget scripts still work fine
bash -x /home/user/util/scripts/firstScrip.sh
bash -x /home/user/util/scripts/rssimport.sh
/home/user/util/scripts/wget.cron.sh "http://www.hummy.org/path1/path2.cfm?members=" member_index
[…]