Install and configure yum on AIX

Prerequisites:

1- Verify which RPM version you have installed.

1
2
3
4
5
6
7
[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)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[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)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[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)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[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.

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

6- Verify YUM version:

1
2
3
4
5
[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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[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
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

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 4925 times since Thu, Nov 29, 2018
Script to reset NIM state and deallocate resources
Viewed 2349 times since Thu, Feb 21, 2019
Part 3, Monitoring your network packets and tuning the network
Viewed 5954 times since Mon, Jun 4, 2018
AIX WIKIS developerworks
Viewed 2333 times since Sun, Jun 17, 2018
AIX ODM for MPIO User Guide 09
Viewed 3917 times since Mon, Dec 31, 2018
Altering LVM Configuration When a Disk is Not in ODM Anymore
Viewed 3036 times since Mon, Jun 3, 2019
AIX rootvg Mirroring
Viewed 4518 times since Mon, May 21, 2018
AIX, Networking Etherchannel failover testing
Viewed 2572 times since Fri, Apr 19, 2019
O’Reilly’s CD bookshelf
Viewed 12347 times since Wed, Jun 27, 2018
Online Backups and Recovery in a Snap AIX
Viewed 5065 times since Wed, May 30, 2018