Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FYI: Howto mirror the AIX Toolbox

87 views
Skip to first unread message

Hajo Ehlers

unread,
Nov 3, 2008, 6:18:04 PM11/3/08
to
A one liner to get the lastest ( hopefully ) rpm packages from the aix
linux toolbox side ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/

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

Joachim Gann

unread,
Nov 4, 2008, 2:08:58 AM11/4/08
to


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

Hajo Ehlers

unread,
Nov 11, 2008, 3:16:28 PM11/11/08
to
Final scripts. Fetch the latest version and generate a bundle for
further processing

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

0 new messages