Under Construction
Installing RPM Packages
The “yum install” command can be used to install RPM packages. Additional arguments specify what is to be installed. There are a number of different possibilities that are shown below.
In the simplest case, the name of an RPM package can be specified directly, e.g.:
aix01 # yum install gzip
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gzip.ppc 0:1.10-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
gzip ppc 1.10-1 AIX_Toolbox 228 k
Transaction Summary
==========================================================================================================
Install 1 Package
Total download size: 228 k
Installed size: 228 k
Is this ok [y/N]: y
Downloading Packages:
gzip-1.10-1.aix6.1.ppc.rpm | 228 kB 00:00:00
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gzip-1.10-1.ppc 1/1
Installed:
gzip.ppc 0:1.10-1
Complete!
aix01 #
If a certain version of an RPM package is to be installed, e.g. wget version 1.8-2, then the desired version can be specified:
aix01 # yum install gzip-1.8-2
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gzip.ppc 0:1.8-2 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
gzip ppc 1.8-2 AIX_Toolbox 216 k
Transaction Summary
==========================================================================================================
Install 1 Package
Total download size: 216 k
Installed size: 216 k
Is this ok [y/N]: y
Downloading Packages:
gzip-1.8-2.aix6.1.ppc.rpm | 216 kB 00:00:00
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gzip-1.8-2.ppc 1/1
sh: gzip: not found.
install-info: warning: no info dir entry in `/opt/freeware/info/gzip.info.gz'
Installed:
gzip.ppc 0:1.8-2
Complete!
aix01 #
Shell wildcards may be used when specifying package names. For example, if you specify “libxml2-p*“, all RPM packages whose names begin with “libxml2-p” are selected:
aix01 # yum install libxml2-p*
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libxml2-python.ppc 0:2.9.11-1 will be installed
--> Processing Dependency: libxml2 = 2.9.11-1 for package: libxml2-python-2.9.11-1.ppc
---> Package libxml2-python3.ppc 0:2.9.11-1 will be installed
--> Running transaction check
---> Package libxml2.ppc 0:2.9.11-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
libxml2-python ppc 2.9.11-1 AIX_Toolbox 1.5 M
libxml2-python3 ppc 2.9.11-1 AIX_Toolbox 1.4 M
Installing for dependencies:
libxml2 ppc 2.9.11-1 AIX_Toolbox 5.5 M
Transaction Summary
==========================================================================================================
Install 3 Packages
Total size: 8.4 M
Installed size: 8.4 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libxml2-2.9.11-1.ppc 1/3
Installing : libxml2-python-2.9.11-1.ppc 2/3
Installing : libxml2-python3-2.9.11-1.ppc 3/3
Installed:
libxml2-python.ppc 0:2.9.11-1 libxml2-python3.ppc 0:2.9.11-1
Dependency Installed:
libxml2.ppc 0:2.9.11-1
Complete!
aix01 #
In general, RPM packages that are required but not specified are automatically selected (libxml2 in the example) and then installed as well. Ultimately, this is one of the reasons why a package manager like YUM is used at all!
The interactive query
…
Is this ok [y/N]:
can be avoided by using the “-y” or “—asumeyes” option on the command line:
aix01 # yum install -y gzip
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gzip.ppc 0:1.10-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
gzip ppc 1.10-1 AIX_Toolbox 228 k
Transaction Summary
==========================================================================================================
Install 1 Package
Total size: 228 k
Installed size: 228 k
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gzip-1.10-1.ppc 1/1
Installed:
gzip.ppc 0:1.10-1
Complete!
aix01 #
If only a file name is known, but not the associated RPM package, the file name can also be specified during installation. YUM then searches the repositories for RPM packages that contain the specified file.
aix01 # yum install /opt/freeware/bin/zegrep_64
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gzip.ppc 0:1.10-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
gzip ppc 1.10-1 AIX_Toolbox 228 k
Transaction Summary
==========================================================================================================
Install 1 Package
Total size: 228 k
Installed size: 228 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gzip-1.10-1.ppc 1/1
Installed:
gzip.ppc 0:1.10-1
Complete!
aix01 #