Setup private yum repository for AIX clients

Prerequisites:

  •   A Unix server on your private network:
    • Accessing IBM repository ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/)
    •    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:

1
2
3
4
[root@unix.domain:/] mkdir /repo
[root@unix.domain:/] chown apache:apache /repo
[root@unix.domain:/] cd /repo

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.

1
2
3
4
5
6
<Directory "/repo">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Require all granted
</Directory>
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)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@aix:/] 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

NOTE: If you have not install YUM on AIX client, see this post http://wp.me/p5bweg-7f

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

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

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
[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
========================================================================================================================================================
Installing:
 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
 
Installed:
  wget.ppc 0:1.17.1-1
 
Complete!

That’s it!!

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
http://ibmsystemsmag.com/aix/administrator/backuprecovery/remote-sync/
Viewed 5366 times since Wed, May 30, 2018
Technology level update on AIX using smit_update and alt_disk_install method
Viewed 5737 times since Sun, Jun 30, 2019
LVM: Display basic information about Physical Volumes, Volume Groups and Logical Volumes
Viewed 2912 times since Sun, Jun 3, 2018
Part 1, The basics of network troubleshooting
Viewed 5228 times since Tue, May 22, 2018
Topics: PowerHA / HACMP, Storage Adding a new volume group to an active PowerHA resource group
Viewed 2589 times since Mon, Jun 3, 2019
AIX: How to manage network tuning parameters
Viewed 3802 times since Mon, Jun 11, 2018
System Admin Mirrorvg without locking the volume group
Viewed 3083 times since Mon, May 21, 2018
Ethernet tunning for VIOS and AIX for 10 Gib/sec environtement.
Viewed 10419 times since Thu, Feb 21, 2019
List of 10 Must Know Oracle Database Parameters for Database Administrator
Viewed 125756 times since Thu, Jun 21, 2018
AIX QHA
Viewed 11076 times since Mon, Jun 3, 2019