dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

FYI: Howto mirror the AIX Toolbox - aix

This is a discussion on FYI: Howto mirror the AIX Toolbox - aix ; 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/...box/alpha.html |\ tr "\"" "\\n" |\ grep rpm$ |\ xargs -n1 -I{} wget --mirror ...


Home > Database Forum > Operating Systems > aix > FYI: Howto mirror the AIX Toolbox

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 11-03-2008, 07:18 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default FYI: Howto mirror the AIX Toolbox

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/...box/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
Reply With Quote
  #2  
Old 11-04-2008, 03:08 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: FYI: Howto mirror the AIX Toolbox

Hajo Ehlers wrote:
> 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/...box/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
Reply With Quote
  #3  
Old 11-11-2008, 04:16 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: FYI: Howto mirror the AIX Toolbox

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
wget -qO - http://www.ibm.com/systems/p/os/aix/...box/alpha.html
|\
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
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 07:59 PM.