How To Configure YUM in AIX
Updated: Oct 3, 2021
We might need to install some RPMs packages on AIX Operating System, and yum will be the best tools to install RPMs rather than use the rpm command.
All the RPMs for AIX are available at: http://www.perzl.org/aix/.Let's install yum on AIX.
Step1: To download all the needed RPMs and copy them to AIX
$ mkdir AIX
$ cd AIX
$ wget https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/yum_bundle.tar
# mkdir /tmp/RPM
# cd /tmp/RPM
# scp root@192.168.1.12:/home/user1/Downloads/yum_bundle.tar .
# tar -xv yum_bundle.tar
Step2: To Install RPMs on the AIX System
# cd /tmp/RPM
# rpm -ivh ca-certificates-2016.10.7-2.aix6.1.ppc.rpm
# rpm -ivh curl-7.52.1-1.aix6.1.ppc.rpm
# rpm -ivh db-4.8.24-3.aix6.1.ppc.rpm
# rpm -ivh gdbm-1.8.3-5.aix5.2.ppc.rpm
# rpm -ivh gettext-0.19.7-1.aix6.1.ppc.rpm
# rpm -ivh glib2-2.14.6-2.aix5.2.ppc.rpm
# rpm -ivh readline-6.1-2.aix6.1.ppc.rpm
# rpm -ivh sqlite-3.15.2-1.aix6.1.ppc.rpm
# rpm -ivh python-2.7.10-1.aix6.1.ppc.rpm
# rpm -ivh python-devel-2.7.10-1.aix6.1.ppc.rpm
# rpm -ivh python-iniparse-0.4-1.aix6.1.noarch.rpm
# rpm -ivh python-pycurl-7.19.3-1.aix6.1.ppc.rpm
# rpm -ivh python-tools-2.7.10-1.aix6.1.ppc.rpm
# rpm -ivh python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
# rpm -ivh pysqlite-1.1.7-2.aix6.1.ppc.rpm
# rpm -ivh yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm
# rpm -ivh yum-3.4.3-5.aix6.1.noarch.rpm
Step3: The default YUM configuration file /opt/freeware/etc/yum/yum.conf is installed with YUM.
# cat /opt/freeware/etc/yum/yum.conf
[AIX_Toolbox]
name=AIX generic repository
baseurl= http://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
[AIX_Toolbox_noarch]
name=AIX noarch repository
baseurl= http://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/
[AIX_Toolbox_61]
name=AIX 6.1 specific repository
baseurl= http://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-6.1/
[AIX_Toolbox_71]
name=AIX 7.1 specific repository
baseurl= http://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.1/
[AIX_Toolbox_72]
name=AIX 7.2 specific repository
baseurl= http://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/
Step4: Verify the YUM to install some tools
# yum install gcc
Troubleshooting:
db4 error(-30971) DB_VERSION_MISMATCH
error: db4 error(-30971) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db4 - (-30971)
Fix the Berkeley Database "version mismatch" errors:
# rm -f /var/lib/rpm/__db*
or
# rpm --rebuilddb
2. The old version of RPM that is shipped by default with AIX
# lslpp -L | grep rpm.rte
rpm.rte 3.0.5.52 C F RPM Package Manager
Download and install the latest rpm.rte
# wget --no-check-certificate https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte.4.13.0.3
# installp -aXYgd . rpm.rte
Hope this doc will help.
Comentarios