YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package...

10
YUM on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying, and managing RPM packages. YUM automatically determines dependencies for the packages getting updated/installed thus fetches the dependent packages and installs them with the requested packages. It works with an existing software repository that contains RPM packages. The YUM repository can be local or over network. YUM Benefits Without YUM it is difficult to navigate package dependencies. Often one must manually determine dependencies, one by one. YUM automatically consults a dependency database and downloads the dependent packages you need. YUM can list all the packages available on the repository. Using YUM one can find if new versions of installed packages are available and can update those packages. YUM Installation on AIX Install the rpm.rte with "minimum version" of 4.9.1.3 or greater from https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc Download and install the rpms from yum_bundle_v1.tar from https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/ Make sure there are no conflicting rpms already installed. AIX Toolbox is the default repository set for YUM after installation. AIX YUM supports all the protocols (local/ftp/http/https etc.) as supported in Linux distributions. Detailed steps to install https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/RE ADME-yum Creating Local YUM Repository One can create a local repository of RPM packages to work with YUM. The local repository server can be an AIX or a Linux server. There are two ways it can be done:

Transcript of YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package...

Page 1: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,

YUM on AIX

YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying, and managing RPM packages. YUM automatically determines dependencies for the packages getting updated/installed thus fetches the dependent packages and installs them with the requested packages. It works with an existing software repository that contains RPM packages. The YUM repository can be local or over network. YUM Benefits Without YUM it is difficult to navigate package dependencies. Often one must manually determine dependencies, one by one. YUM automatically consults a dependency database and downloads the dependent packages you need. YUM can list all the packages available on the repository. Using YUM one can find if new versions of installed packages are available and can update those packages. YUM Installation on AIX

• Install the rpm.rte with "minimum version" of 4.9.1.3 or greater from

https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc • Download and install the rpms from yum_bundle_v1.tar from

https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/ • Make sure there are no conflicting rpms already installed. • AIX Toolbox is the default repository set for YUM after installation. • AIX YUM supports all the protocols (local/ftp/http/https etc.) as

supported in Linux distributions. • Detailed steps to install

https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/README-yum Creating Local YUM Repository One can create a local repository of RPM packages to work with YUM. The local repository server can be an AIX or a Linux server. There are two ways it can be done:

Page 2: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,

1. Using existing repodata from AIX toolbox to a local ftp/http server • Download all RPMs and repodata files from AIX toolbox ftp

server ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/ • Keep the same directory structure for RPMS and repodata

2. Creating your own repository and repodata

• Download RPMs or build you RPMs and keep them in one directory.

• Run createrepo command on the directory where all the RPMs.

# createrepo <Dir where all RPMs> Finally change the /opt/freeware/etc/yum/yum.conf to point to host and directory where rpm packages and repodata information is present. Using YUM on AIX Basic YUM Commands

• yum install <package name/s>: To install a package/packages • yum update <package name/s>: To update a package/packages • yum check-update: To check if a new version of packages is • available. • yum remove <package name/s>: To remove a package/packages • yum provides <file name>: To find which packages provide the file. • yum search <keyword>: To find a package/packages containing

the specified keyword in description from repository. • yum localinstall <absolute path to package name/s>: To intall a

package located locally in the machine. Installing YUM on AIX Check and install rpm.rte with minimum version of 4.9.1.3. Then install all the packages from yum_bundle_v1.tar

Page 3: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,
Page 4: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,

yum.conf and Default Repositories By default three entries will be there in yum.conf

1. AIX generic repository (RPMs compiled for ppc but not AIX version specific)

2. AIX noarch repository (RPMs those are not architecture specific) 3. AIX 6.1/7.1/7.2 specific repository (Depends on your AIX verison)

Page 5: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,

Listing Packages Using YUM One can list all the packages from repositories using “yum list” command. The command will also show what packages are already installed on ths system and what are available on the repositories.

Page 6: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,

Install a Package Using YUM To install a package using yum just rum “yum install <package name>”. In the following example wget package is getting installed using yum on AIX.

Page 7: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,

Installing Packages with Dependencies If there are dependent packages then yum resolve the dependencies and install all the dependent packages as well. In the following example gcc and all its dependent packages are getting installed.

Page 8: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,

Checking Updates Using YUM One can check if there are any updates for already installed packages available on the repository.

Updating Packages Using YUM

Page 9: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,

One can update all the packages installed to the latest level available on repository

Searching Packages Using Keywords Using following two methods one can search a package by keywords.

Page 10: YUM on AIX - IBM - United States on AIX YUM Overview YUM is an open source command line package management utility for RPM packages. It is a tool for installing, removing, querying,