Reese Knowledgebase

How to install package groups with up2date

View Kristian Reese's profile on LinkedIn


If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 130
by: Reese K.
Posted: 04 Oct, 2013
Last updated: 04 Oct, 2013
Views: 1687

How to install package groups with up2date

Prior to the days of yum shipping with RHEL, up2date was used for updating and installing packages on Red Hat Enterpise Linux.  It had been a long while since I've personally had to use up2date since yum had become common place in our latter RHEL installations, but low and behold, I came across a legacy RHEL 4 system that needed some work and I needed to install some packages.

First, I setup an up2date repository from locally-mounted CD/DVD iso downloaded from redhat.

How do I create a local repository in RHEL 4?


  1. Download ISOs from RHN (see Using wget to download iso from rhn)
  2. Mount the media.

# mount -o loop,ro /root/RHEL4-U4-x86_64-ES-disc1.iso /root/rhel/disk1

Once I had all my media mounted, it looked like this:

[root@wafdb1 rhel]# df -P | grep rhel
/root/RHEL4-U4-x86_64-ES-disc1.iso    191888    191888         0     100% /root/rhel/disk1
/root/RHEL4-U4-x86_64-ES-disc2.iso    605802    605802         0     100% /root/rhel/disk2
/root/RHEL4-U4-x86_64-ES-disc3.iso    642816    642816         0     100% /root/rhel/disk3
/root/RHEL4-U4-x86_64-ES-disc4.iso    652722    652722         0     100% /root/rhel/disk4
/root/RHEL4-U4-x86_64-ES-disc5.iso    376734    376734         0     100% /root/rhel/disk5

Next, the following line in /etc/sysconfig/rhn/sources needs to be commented out to keep up2date from connecting to Red Hat Network:

up2date default

Change it to: 

#up2date default

Next, in the same file, create entries like the following:

dir mycdrepo1 /root/rhel/disk1/RedHat/RPMS
dir mycdrepo2 /root/rhel/disk2/RedHat/RPMS
dir mycdrepo3 /root/rhel/disk3/RedHat/RPMS
dir mycdrepo4 /root/rhel/disk4/RedHat/RPMS
dir mycdrepo5 /root/rhel/disk5/RedHat/RPMS

Now the system is ready to install packages from the installation media using up2date.

Installing package groups with up2date


You can install packages using the @ sign in front of the package group name as follows:

# up2date -i "@KDE (K Desktop Environment)"

In order to see what groups are available, issue:

# up2date --show-groups

In order to list all packages available that are not currently installed:

# up2date-nox --show-available

Read the man page for up2date for more information.

This article was:   Helpful | Not Helpful
Prev   Next
How To create a local mirror of latest Red Hat Enterprise Linux...     How To Resize an iscsi LUN in Linux

RSS