200 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
12.1 Registering your system with RHN
This section assumes you have already obtained a valid entitlement for RHEL 6 on IBM
System z, or have completed the steps to obtain an evaluation copy. To receive a no cost
90-day evaluation, go to the following address:
http://www.redhat.com/z
Select the Free Evaluation link under the Try section on the left and create an account if you
do not already have one. After completing the form, you receive an email in a short while with
the activation instructions.
12.2 Installing and updating packages using yum
You may choose to perform these steps first on a clone, such as LINUX01, and then later on
the golden image. In this fashion, you can test the process on an appliance that can be
discarded, and later when all is tested and working, update the golden image so that all
clones created thereafter are enabled for RHN.
Before using the yum command for the first time, you must import the Red Hat GPG key and
register your Linux guest with RHN. Use the following commands, substituting your RHN user
name, password, and host name of the Linux guest:
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
# rhnreg_ks --username=myuser --password=mypw
--profilename=linux01.endicott.ibm.com
Now that your system is registered with RHN, you can use the yum command to keep the
system updated. You can download and install the latest version of a package by running yum
with the RPM package name. You can also specify multiple packages on the command line
separated by spaces. The yum install command installs the package if it is not present, and
the yum upgrade command updates to the latest version if it is already installed. If a package
has any dependencies, yum automatically downloads and installs them for you.
Update the cpp package to get the latest security fixes:
# rpm -q cpp
cpp-4.1.1-30
# yum upgrade cpp
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Setting up Upgrade Process
Setting up repositories
rhel-s390x-server-5-beta 100% |=========================| 950 B 00:00
...
=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
cpp s390x 4.1.1-43.el5 RHEL5 2.6 M
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Komentarze do niniejszej Instrukcji