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.

14 Responses to Install and configure yum on AIX.

  1. MOHAN KIRAN TADAVARTHY says:

    Hi,
    Thank you for the detailed steps. After installing the latest version of RMP i tries to install YUM bundle and getting below error.

    $rpm -ivh *.rpm
    error: Failed dependencies:
    libcrypto.a(libcrypto.so) is needed by curl-7.52.1-1.ppc
    libssl.a(libssl.so) is needed by curl-7.52.1-1.ppc
    libcrypto.a(libcrypto.so) is needed by python-2.7.10-1.ppc
    libssl.a(libssl.so) is needed by python-2.7.10-1.ppc
    libcrypto.a(libcrypto.so) is needed by python-pycurl-7.19.3-1.ppc

    Also i see below errors when i am looking for OSVersion. Please suggest.

    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
    7100-02-03-1334

    Like

    • igalvarez says:

      Hi, Although my installation was on AIX 6.1, can you check:
      1- which openssl version are installed on your AIX?
      2- run “rpm –version” and send me output
      3- run “find / -name libcrypto.a” and send me output
      4- run “find / -name libssl.a” on your box and send me output

      Like

    • Satish says:

      Hi Mohan, Is this issue resovled?
      I am also facing this issue. Please tell me how you fixed this if this is solved.

      Like

  2. MOHAN KIRAN TADAVARTHY says:

    Hi, Thank you for your reply, please find my response below.
    $openssl version
    OpenSSL 0.9.8x 10 May 2012

    $rpm –version
    RPM version 4.9.1.3

    $find / -name libcrypto.a
    /opt/freeware/64/lib/libcrypto.a
    /opt/freeware/lib/libcrypto.a
    /usr/lib/libcrypto.a
    /usr/linux/lib/libcrypto.a
    /var/tmp/openssl-0.9.7l-2/opt/freeware/64/lib/libcrypto.a
    /var/tmp/openssl-0.9.7l-2/usr/linux/lib/libcrypto.a

    $find / -name libssl.a
    /opt/freeware/64/lib/libssl.a
    /opt/freeware/lib/libssl.a
    /usr/lib/libssl.a
    /usr/linux/lib/libssl.a
    /var/tmp/openssl-0.9.7l-2/opt/freeware/64/lib/libssl.a
    /var/tmp/openssl-0.9.7l-2/usr/linux/lib/libssl.a

    Like

  3. igalvarez says:

    Oopss, very sorry forgot -ls option
    please, run again
    find / -name libcrypto.a -ls
    find / -name libssl.a -ls

    Like

  4. MOHAN KIRAN TADAVARTHY says:

    mxt0c8o@goxsd1671:/home/mxt0c8o
    $find / -name libcrypto.a -ls
    17685 1 lrwxrwxrwx 1 root system 21 Aug 4 2014 /opt/freeware/64/lib/libcrypto.a -> ../../lib/libcrypto.a
    35766 6065 -rwxr-xr-x 1 root system 6210482 Sep 4 2007 /opt/freeware/lib/libcrypto.a
    58812 5063 -r-xr-xr-x 1 root system 5183753 Jul 13 2012 /usr/lib/libcrypto.a
    90423 1 lrwxrwxrwx 1 root system 29 Aug 4 2014 /usr/linux/lib/libcrypto.a -> /opt/freeware/lib/libcrypto.a
    225742 1 lrwxrwxrwx 1 root system 21 Aug 15 15:55 /var/tmp/openssl-0.9.7l-2/opt/freeware/64/lib/libcrypto.a -> ../../lib/libcrypto.a
    225813 1 lrwxrwxrwx 1 root system 29 Aug 15 15:55 /var/tmp/openssl-0.9.7l-2/usr/linux/lib/libcrypto.a -> /opt/freeware/lib/libcrypto.a
    mxt0c8o@goxsd1671:/home/mxt0c8o
    $find / -name libssl.a -ls
    17687 1 lrwxrwxrwx 1 root system 18 Aug 4 2014 /opt/freeware/64/lib/libssl.a -> ../../lib/libssl.a
    35787 1164 -rwxr-xr-x 1 root system 1191850 Sep 4 2007 /opt/freeware/lib/libssl.a
    58867 1097 -r-xr-xr-x 1 root system 1123203 Jul 13 2012 /usr/lib/libssl.a
    90425 1 lrwxrwxrwx 1 root system 26 Aug 4 2014 /usr/linux/lib/libssl.a -> /opt/freeware/lib/libssl.a
    225743 1 lrwxrwxrwx 1 root system 18 Aug 15 15:55 /var/tmp/openssl-0.9.7l-2/opt/freeware/64/lib/libssl.a -> ../../lib/libssl.a
    225814 1 lrwxrwxrwx 1 root system 26 Aug 15 15:55 /var/tmp/openssl-0.9.7l-2/usr/linux/lib/libssl.a -> /opt/freeware/lib/libssl.a

    Like

  5. igalvarez says:

    OK, it seems you have two openssl versions installed on your box.
    Can you run:
    # rpm -qa|grep openssl
    # lslpp -l |grep openssl

    Like

    • MOHAN KIRAN TADAVARTHY says:

      I have already tried this but unfortunately this did not help.

      mxt0c8o@goxsd1671:/tmp/yum/bundle
      $updtvpkg
      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

      Anyways thanks for all your inputs. Will see what else is causing this.

      Like

  6. MOHAN KIRAN TADAVARTHY says:

    mxt0c8o@goxsd1671:/tmp/yum/bundle
    $rpm -qa|grep openssl
    openssl-devel-0.9.7l-2.ppc
    openssl-0.9.7l-2.ppc
    openssl-doc-0.9.7l-2.ppc
    mxt0c8o@goxsd1671:/tmp/yum/bundle
    $lslpp -l |grep openssl
    openssl.base 0.9.8.2400 COMMITTED Open Secure Socket Layer
    openssl.man.en_US 0.9.8.2400 COMMITTED Open Secure Socket Layer
    openssl.base 0.9.8.2400 COMMITTED Open Secure Socket Layer

    Like

  7. igalvarez says:

    As a workarround try this
    mv /usr/lib/libcrypto.a /usr/lib/libcrypto.a_OLD
    mv /usr/lib/libssl.a /usr/lib/libssl.a_OLD

    Now link openssl’s RPM’s version:

    ln -s /opt/freeware/lib/libcrypto.a /usr/lib/libcrypto.a
    ln -s /opt/freeware/lib/libssl.a /usr/lib/libssl.a

    And try again “rpm -ivh *.rpm” command.

    Like

  8. igalvarez says:

    I think when you run “rpm -ivh *” it’s using the wrong libcrypto.a and libssl.a files. Try change LIBPATH variable. Sorry I can’t help you.
    FInally, if you are able to fix your issue, please update this thread.

    Have a nice day. 🙂

    Like

    • MOHAN KIRAN TADAVARTHY says:

      Definitely…you are of great help.. You pin pointed the root cause and i understand where i am stuck now and will take it from there ..Thanks a bunch!

      Like

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