Sysadmin's Shouts!

a blog for sysadmin's rants and raves…

Instalar YUM en AIX v7.2+

Leave a comment

Una de las novedades de AIX v7.2 es que por fín IBM ha sacado un bundle para poder instalar yum bajo AIX. Y viene preconfigurado para usar el repositorio de IBM AIX Toolbox, BONUS!

Para instalar YUM en AIX, primero tenemos que actualizar el rpm a la v4.9 o superior, la última siempre se puede bajar de:

ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte

O directamente desde el servidor AIX en donde lo vamos a instalar (mas cómodo si disponemos de conexión a internet en dicho servidor):

[root@tsm_srv:/software]ftp ftp.software.ibm.com
Connected to dispsd-40-www3.boulder.ibm.com.
220-**********************************************************************
220-* *
220-* IBM's internal systems must only be used for conducting IBM's *
220-* business or for purposes authorized by IBM management. *
220-* *
220-* Use is subject to audit at any time by IBM management. *
220-* *
220-* Important Please read *
220-* *
220-* Machine Code updates provided through this site are available *
220-* only for IBM machines that are under warranty or an IBM hardware *
220-* maintenance service agreement Code for operating systems or other *
220-* software products is available only where entitled under the *
220-* applicable software warranty or IBM software maintenance *
220-* agreement. All code (including Machine Code updates, samples, *
220-* fixes or other software downloads)provided through this site *
220-* is subject to the terms of the license agreements which *
220-* govern the use of the associated code. Some exceptions may *
220-* apply.IBM reserves the right to change, modify or withdraw its *
220-* offerings,policies and practices at any time. *
220-**********************************************************************
220-
220 service.boulder.ibm.com FTP server (Version wu-2.6.2.1(5) Custom Tue Aug 17 13:28:23 MDT 2010) ready.
Name (ftp.software.ibm.com:root): ftp
331 Guest login ok, send any password.
Password: aaaa@bbbb.com
230 Guest login ok, access restrictions apply.
ftp> cd /aix/freeSoftware/aixtoolbox/INSTALLP/ppc
ftp> get rpm.rte
200 PORT command successful.
150 Opening ASCII mode data connection for rpm.rte (354266 bytes).
226 Transfer complete.
355464 bytes received in 5.399 seconds (64.3 Kbytes/s)
local: rpm.rte remote: rpm.rte
ftp> bye

Una vez bajado, lo instalamos:

[root@tsm_srv:/software]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 >>

Una vez instalado el rpm actualizado, ya podemos bajarnos el bundle especial de YUM:

ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/yum_bundle_v1.tar

Lo desempaquetamos:

[root@tsm_srv:/software]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.
...

Instalamos todos los RPMs que vienen en el bundle:

[root@tsm_srv:/software]rpm -Uvh *.rpm
# Preparing... ########################################### [100%]
1:python ########################################### [ 9%]
2:pysqlite ########################################### [ 18%]
3:python-iniparse ########################################### [ 27%]
...

Y ya tenemos yum:

[root@tsm_srv:/software]<span style="color: #0000ff;">yum --version</span>
3.4.3
Installed: yum-3.4.3-3.noarch at 2016-11-04 21:39
Built : None at 2016-08-18 11:06
Committed: Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> at 2016-08-19

[root@tsm_srv:/software]<span style="color: #0000ff;">yum repolist</span>
repo id repo name status
AIX_Toolbox AIX generic repository 259
AIX_Toolbox_72 AIX 7.2 specific repository 10
AIX_Toolbox_noarch AIX noarch repository 26
repolist: 295

Gracias IBM, y gracias Sangamesh!

Por fin ya podemos decir que rpm en AIX está “deprecated“.

;o)

Advertisements

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