Install and configure yum on AIX.

Prerequisites:

1- Verify which RPM version you have installed.


[root@aix:/] lslpp -w /usr/bin/rpm
  File                                        Fileset               Type
  ----------------------------------------------------------------------------
  /usr/bin/rpm                                rpm.rte               File

[root@aix:/] rpm --version
RPM version 3.0.5

2- Install latest RPM version (downloaded abovefrom IBM)

[root@aix:/] cd /tmp/yum/rpm
[root@aix:/tmp/yum/rpm]  installp -aXYgd . rpm.rte
+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  rpm.rte 4.9.1.3                             # RPM Package Manager

<< End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

+-----------------------------------------------------------------------------+
                         Installing Software...
+-----------------------------------------------------------------------------+

installp:  APPLYING software for:
        rpm.rte 4.9.1.3

Warning: the contents of the following RPM packages will be overwritten.
If these packages did not come from the AIX Toolbox for Linux Applications,
it may be necessary to reinstall them.

zlib-1.2.5-1

#####################################################
        Creating virtual packages already installed in your system
        It will take a few minutes ...

2344 blocks
308 blocks
cpio: 0511-025 Cannot get information about (contains no files).
0 blocks
cpio: 0511-025 Cannot get information about (contains no files).
0 blocks
cpio: 0511-025 Cannot get information about (contains no files).
0 blocks
7426 blocks
12005 blocks
6624 blocks
2107 blocks
839 blocks
896 blocks
277 blocks
1296 blocks
10927 blocks
738 blocks
241 blocks
229 blocks
cpio: 0511-025 Cannot get information about (contains no files).
0 blocks

. . . . . &lt;&lt; Copyright notice for rpm.rte &gt;&gt; . . . . . . .
 Licensed Materials - Property of IBM

 5765G6200
   Copyright International Business Machines Corp. 2000, 2016.
   Copyright Regents of the University of California 1990, 1993, 1994, 1995.
   Copyright Jean-loup Gailly and Mark Adler, 1995 - 1998.
   Copyright The President and Fellows of Harvard University 1995, 1996.
   Copyright Julian R Seward, 1996 - 2000
   Copyright Sleepycat Software, 1990 - 2000

 All rights reserved.
 US Government Users Restricted Rights - Use, duplication or disclosure
 restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . &lt;&lt; End of copyright notice for rpm.rte &gt;&gt;. . . .

#####################################################
        Rebuilding RPM Data Base ...
        Please wait for rpm_install background job termination
        It will take a few minutes

Please wait...error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag

Successfully updated the Kernel Authorization Table.
Successfully updated the Kernel Role Table.
Successfully updated the Kernel Command Table.
Successfully updated the Kernel Device Table.
Successfully updated the Kernel Object Domain Table.
Successfully updated the Kernel Domains Table.
Finished processing all filesets.  (Total time:  1 mins 59 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
rpm.rte                     4.9.1.3         USR         APPLY       SUCCESS
rpm.rte                     4.9.1.3         ROOT        APPLY       SUCCESS

3- Untar RPM files from YUM BUNDLE yum_bundle_v1.tar (downloaded before from IBM)

[root@aix:/] cd /tmp/yum/bundle
[root@aix:/] ls -ltr yum_bundle_v1.tar
-rw-r-----    1 root     system     49530880 Jan 13 12:14 yum_bundle_v1.tar

[root@aix:/tmp/yum/bundle] tar xvf yum_bundle_v1.tar
x curl-7.44.0-1.aix6.1.ppc.rpm, 584323 bytes, 1142 media blocks.
x db-4.8.24-3.aix6.1.ppc.rpm, 2897799 bytes, 5660 media blocks.
x gdbm-1.8.3-5.aix5.2.ppc.rpm, 56991 bytes, 112 media blocks.
x gettext-0.10.40-8.aix5.2.ppc.rpm, 1074719 bytes, 2100 media blocks.
x glib2-2.14.6-2.aix5.2.ppc.rpm, 1686134 bytes, 3294 media blocks.
x pysqlite-1.1.7-1.aix6.1.ppc.rpm, 51602 bytes, 101 media blocks.
x python-2.7.10-1.aix6.1.ppc.rpm, 23333701 bytes, 45574 media blocks.
x python-devel-2.7.10-1.aix6.1.ppc.rpm, 15366474 bytes, 30013 media blocks.
x python-iniparse-0.4-1.aix6.1.noarch.rpm, 37912 bytes, 75 media blocks.
x python-pycurl-7.19.3-1.aix6.1.ppc.rpm, 162093 bytes, 317 media blocks.
x python-tools-2.7.10-1.aix6.1.ppc.rpm, 830446 bytes, 1622 media blocks.
x python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm, 158584 bytes, 310 media blocks.
x readline-6.1-2.aix6.1.ppc.rpm, 489547 bytes, 957 media blocks.
x sqlite-3.7.15.2-2.aix6.1.ppc.rpm, 1334918 bytes, 2608 media blocks.
x yum-3.4.3-3.aix6.1.noarch.rpm, 1380343 bytes, 2696 media blocks.
x yum-metadata-parser-1.1.4-1.aix6.1.ppc.rpm, 62211 bytes, 122 media blocks.

[root@aix:/tmp/yum/bundle] ls -ltr
total 193488
-rw-r-----    1 root     system        62211 Jun 28 2016  yum-metadata-parser-1.1.4-1.aix6.1.ppc.rpm
-rw-r-----    1 root     system      1334918 Jun 28 2016  sqlite-3.7.15.2-2.aix6.1.ppc.rpm
-rw-r-----    1 root     system       489547 Jun 28 2016  readline-6.1-2.aix6.1.ppc.rpm
-rw-r-----    1 root     system       158584 Jun 28 2016  python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
-rw-r-----    1 root     system       830446 Jun 28 2016  python-tools-2.7.10-1.aix6.1.ppc.rpm
-rw-r-----    1 root     system       162093 Jun 28 2016  python-pycurl-7.19.3-1.aix6.1.ppc.rpm
-rw-r-----    1 root     system        37912 Jun 28 2016  python-iniparse-0.4-1.aix6.1.noarch.rpm
-rw-r-----    1 root     system     15366474 Jun 28 2016  python-devel-2.7.10-1.aix6.1.ppc.rpm
-rw-r-----    1 root     system     23333701 Jun 28 2016  python-2.7.10-1.aix6.1.ppc.rpm
-rw-r-----    1 root     system        51602 Jun 28 2016  pysqlite-1.1.7-1.aix6.1.ppc.rpm
-rw-r-----    1 root     system      1686134 Jun 28 2016  glib2-2.14.6-2.aix5.2.ppc.rpm
-rw-r-----    1 root     system      1074719 Jun 28 2016  gettext-0.10.40-8.aix5.2.ppc.rpm
-rw-r-----    1 root     system        56991 Jun 28 2016  gdbm-1.8.3-5.aix5.2.ppc.rpm
-rw-r-----    1 root     system       584323 Jun 28 2016  curl-7.44.0-1.aix6.1.ppc.rpm
-rw-r-----    1 root     system      2897799 Jul 01 2016  db-4.8.24-3.aix6.1.ppc.rpm
-rw-r--r--    1 root     system      1380343 Aug 25 19:41 yum-3.4.3-3.aix6.1.noarch.rpm

4- Install RPM files from YUM BUNDLE yum_bundle_v1.tar (downloaded before from IBM)

[root@aix:/tmp/yum/bundle] rpm -ivh *.rpm
Preparing...                ########################################### [100%]
   1:readline               ########################################### [  6%]
   2:sqlite                 ########################################### [ 13%]
   3:gettext                ########################################### [ 19%]
   4:glib2                  ########################################### [ 25%]
   5:yum-metadata-parser    ########################################### [ 31%]
   6:gdbm                   ########################################### [ 38%]
   7:db                     ########################################### [ 44%]
   8:python                 ########################################### [ 50%]
   9:pysqlite               ########################################### [ 56%]
  10:python-iniparse        ########################################### [ 63%]
  11:curl                   ########################################### [ 69%]
  12:python-pycurl          ########################################### [ 75%]
  13:python-urlgrabber      ########################################### [ 81%]
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
  14:yum                    ########################################### [ 88%]
  15:python-devel           ########################################### [ 94%]
  16:python-tools           ########################################### [100%]

5- Verify YUM binary file.

[root@aix:/tmp/yum/bundle] which yum
/usr/bin/yum

6- Verify YUM version:

[root@aix:/tmp/yum/bundle]  yum --version
3.4.3
  Installed: yum-3.4.3-3.noarch at 2017-01-13 11:22
  Built    : None at 2016-08-18 11:06
  Committed: Sangamesh Mallayya &lt;sangamesh.swamy@in.ibm.com&gt; at 2016-08-19

7- Edit yum.conf file on AIX system and add this code.

NOTE: URL- http://apache_private_server/repo is your private yum repository.

[root@aix:/tmp/yum/bundle] cp /opt/freeware/etc/yum/yum.conf /opt/freeware/etc/yum/yum.conf.ORIG
[root@aix:/tmp/yum/bundle] cat /opt/freeware/etc/yum/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1

[AIX_Toolbox]
name=Private YUM repository
baseurl=http://apache_private_server/repo
enabled=1
gpgcheck=0

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum/repos.d

You can find official documentation from IBM here: https://goo.gl/epAjj0

Advertisements

About igalvarez

More than 20 years experiences on IT industry. 20+ years in Unix experience : IBM-AIX, HMC/SDMC/IVM, SVC, Protectier, PureFlex Systems, VIOservers, IBM Bladecenters, IBM System Power, RedHat Linux, SuSE Linux, Debian/Ubuntu Linux. Solaris, SCO Unix, Tru64 Unix, Linux Virtualization: XEN, KVM, databases sb2, oracle, postgreSQL, Find more information here: http://en.gravatar.com/igalvarez
This entry was posted in AIX and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s