If you enabled the Red Hat Package Management (RPM) library
and lifecycle, you can create and use assets that are RPM packages.
Before you begin
Before you can create and use YUM assets, a repository
administrator must enable the RPM model library. Additionally, a repository
or community administrator must create a community and import the
RPM lifecycle to that community. For more information, see Enabling the Red Hat Package Management library and Creating the Red Hat Package Management lifecycle.
The yum client
can integrate with Rational Asset Manager by
using the RPM package repository. The yum client
is installed by default on typical Linux operating systems.
Procedure
- Create and submit an asset for each RPM package. Select RPM
Package as the asset type. To learn more about
creating and submitting assets, see Creating and submitting assets. When you
submit RPM Package assets in the community, submit only one file for
each asset. Optionally, specify a category that reflects
the Linux operating system version and architecture compatibility.
For example, specify the category RH61_i386 to
indicate that a package is compatible only with Red Hat Enterprise
Linux Version 6.1 on the i386 architecture. The Red Hat Package Management
library includes a default list of categories. To learn how to add
more categories, see Defining repository category schemas.
- On the computer running the Linux operating system where
you plan to use the yum client, in the /etc/yum.repos.d directory,
create a repository definition file to use for access to the Rational Asset Manager community. Specify the RPM package repository by using the following URL: http://username:password@hostname/web
services context-root/yum. If you append the
name of a category to the URL, only the packages in that category
will be available to the yum client. For example, use the following
URL to make available only packages categorized as RH56_x86_64: http://username:password@hostname/web
services context-root/yum/RH56_x86_64. Note that
you cannot specify a port number, and you must specify a username
and password for authentication. The following example shows the typical
format of a YUM repository definition file:
[ram]
name=Rational Asset Manager YUM repository
baseurl=http://user:pass@server.example.com/ram.ws/yum
gpgcheck=0
When you use the yum client,
it accesses the packages stored in Rational Asset Manager.
Results
When you install a package using the yum client,
Rational Asset Manager generates
the necessary files, including the
repomd.xml index
file,
filelists.xml.gz,
primary.xml.gz,
and
others.xml.gz.