cat gettoolbox
cd PathToToolbox
wget -qO - http://www.ibm.com/systems/p/os/aix/linux/toolbox/alpha.html
|\
tr "\"" "\\n" |\
grep rpm$ |\
xargs -n1 -I{} wget --mirror {}
If some one knows the option to get rid of the ftp.software.ibm.com/
aix/freeSoftware/aixtoolbox in the result path please update this
message.
cheers
Hajo
Thanks Hajo,
this will strip the host name and extra dirs:
...
xargs -n1 -I{} wget --no-host-directories --cut-dirs=5 --mirror {}
I will also setup mirroring for http://www.oss4aix.org/download/RPMS/
Michael Perzl's excellent compilation.
best regards
Joachim
Perzl RPM build
cat mirror.oss4aix.org
#!/usr/bin/ksh
if cd oss4aix.org/RPMS/ppc ; then
{
for i in aix-53.txt aix-61.txt aix-allversions.txt ; do
wget -qO - http://www.oss4aix.org/download/latest/$i
done
}| grep -v "^$" | xargs -n1 -I{} echo http://www.oss4aix.org/download/RPMS/{}
> ../file.list
wget --no-host-directories -nd -N -i ../file.list
# Generate Bundle file for all RPMS
cat ../file.list | cut -f7 -d"/" | xargs -n1 -I{} echo R:{} > ../../../
oss4aix.org.bnd
cd -
fi
IBM AIX Toolbox
cat mirror.aix5Ltoolbox
#!/usr/bin/ksh
if cd aix5Ltoolbox/RPMS/ppc ; then
tr "\"" "\\n" | grep rpm$ | sed 's/^ftp:/http:/' > ../file.list
wget --no-host-directories -nd -N -i ../file.list
cat ../file.list | cut -f10 -d"/" | xargs -n1 -I{} echo R:{}
> ../../../aix5Ltoolbox.bnd
cd -
fi
Use at your own risk.
Hajo