Setup private yum repository for AIX clients.



  •   A Unix server on your private network:
    • Accessing IBM repository
    •    Apache server installed to serve RPM files for internal AIX clients.
    •    AIX clients must access this Apache server via http.

1- Mirror IBM’s aixtoolbox site.
Let’s mirror IBM’s aixtoolbox site to our Unix server using wget. Run these commands:

[root@unix.domain:/] mkdir /repo
[root@unix.domain:/] chown apache:apache /repo
[root@unix.domain:/] cd /repo
[root@unix.domain:/] wget -m

Once downloaded all folders/files from IBM, let’s configure Apache server.

2- Setup and configure Apache server to serve internal AIX clients.
Add the following Apache directove to http.conf and restart yoru server. Apache server is listen on port 80/TCP.

<Directory "/repo">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Require all granted
Alias /repo  "/repo"

3- Configure YUM on AIX clients.
Add this code to /opt/freeware/etc/yum/yum.conf file on client side (AIX system)

[root@aix:/] cat /opt/freeware/etc/yum/yum.conf

name=Private YUM repository

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

NOTE: If you have not install YUM on AIX client, see this post

Now, let’s list all available packages from yum repository.

root@aix:/] yum list available
Available Packages
ElectricFence.ppc           2.2.2-1           AIX_Toolbox
MySQL.ppc                   3.23.58-2         AIX_Toolbox
MySQL-client.ppc            3.23.58-2         AIX_Toolbox
MySQL-devel.ppc             3.23.58-2         AIX_Toolbox
Xaw3d.ppc                   1.5-4             AIX_Toolbox
Xaw3d-devel.ppc             1.5-4             AIX_Toolbox
a2ps.ppc                    4.13-2            AIX_Toolbox
atk.ppc                     2.20.0-2          AIX_Toolbox
atk-devel.ppc               2.20.0-2          AIX_Toolbox
bash.ppc                    4.3.30-1          AIX_Toolbox

Now, let’s install wget on AIX client from  yum repository.

[root@aix:/] yum -y install wget
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package wget.ppc 0:1.17.1-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package            Arch            Version                      Repository                              Size
 wget               ppc             1.17.1-1                      AIX_Toolbox                            359 k

Transaction Summary
Install       1 Package

Total size: 359 k
Installed size: 932 k
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : wget-1.17.1-1.ppc                                                                                                                                                     1/1

  wget.ppc 0:1.17.1-1


That’s it!!


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:
This entry was posted in AIX, yum and tagged , , , . Bookmark the permalink.

One Response to Setup private yum repository for AIX clients.

  1. Timofey says:

    Nice guide, thanks!
    NB: neither yum nor python-2.7 depend on expat: after updating python-2.7 to the latest IBM repo level yum began to crash “ImportError: No module named cElementTree” error. expat installation fixes it.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s