Install and configure yum on AIX
Article Number: 525 | Rating: Unrated | Last Updated: Thu, Feb 21, 2019 8:32 PM
Prerequisites:
- Download latest version of RPM file from https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/ and copy it to /tmp/yum/rpm/ directory on AIX system.
- Download latest version of yum_bundle (yum_bundle_v1.tar) from https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/ and copy it to /tmp/yum/bundle/directory on AIX system.
- Be sure /opt directory at least 512MB free.
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 --versionRPM 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...doneVerifying requisites...doneResults...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...doneFILESET 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.3Warning: 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 blocks308 blockscpio: 0511-025 Cannot get information about (contains no files).0 blockscpio: 0511-025 Cannot get information about (contains no files).0 blockscpio: 0511-025 Cannot get information about (contains no files).0 blocks7426 blocks12005 blocks6624 blocks2107 blocks839 blocks896 blocks277 blocks1296 blocks10927 blocks738 blocks241 blocks229 blockscpio: 0511-025 Cannot get information about (contains no files).0 blocks. . . . . << Copyright notice for rpm.rte >> . . . . . . . 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.. . . . . << End of copyright notice for rpm.rte >>. . . .##################################################### Rebuilding RPM Data Base ... Please wait for rpm_install background job termination It will take a few minutesPlease wait...error: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagSuccessfully 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 SUCCESSrpm.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.tarx 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 -ltrtotal 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 *.rpmPreparing... ########################################### [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 tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: incorrect format: unknown tagerror: 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 --version3.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 <sangamesh.swamy@in.ibm.com> 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/yumkeepcache=1debuglevel=2logfile=/var/log/yum.logexactarch=1obsoletes=1[AIX_Toolbox]name=Private YUM repositoryenabled=1gpgcheck=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

