How to keep you redhat system updated using apt-get
1. Intro
Redhat does proved the redhat network, but it requires you to register.
Since each machine need to be individually register, maintaining multiple
machine without a site license is a pain. Here is an alternate method.
I used this methods for basking.
Most of the information came from this article:
Red Hat 8.0 for KDE Users (and Newbies)
Also these note were written for RH8.0. It also works for RH7.3, but note
the version differences in the directory, web address, config files, etc.
2. The setup
the folks at FreshRPMS [http://www.freshrpms.net/] have given us another
option: a full Red Hat 8.0 apt repository, including some very interesting
custom packages created by FreshRPMS.
Setting RH8.0 up to work with apt and the FreshRPMS
repository is simplicity itself. First, visit this page
[http://ftp.freshrpms.net/pub/freshrpms/psyche/apt/] and click on the
link for Red Hat 8.0. Grab the apt and apt-devel packages (you don't
need the source [.src.rpm] rpm) and save them to your machine.
Then open a terminal, switch to root user, and install the packages with:
rpm -ivh apt*
Once that's done:
cat /etc/apt/sources.list
You should see the following:
# Red Hat Linux 8.0
rpm http://apt.freshrpms.net redhat/8.0/en/i386 os updates freshrpms
rpm-src http://apt.freshrpms.net redhat/8.0/en/i386 os updates freshrpms
# Red Hat Linux 7.3
#rpm http://apt.freshrpms.net redhat/7.3/en/i386 os updates freshrpms
#rpm-src http://apt.freshrpms.net redhat/7.3/en/i386 os updates freshrpms
If everything looks good, we're ready to update our sources (as root user):
2. Keeping your system up-to-date
Now the full power of apt is at your disposal. (See man apt to learn more
about this powerful tool).
2.1 Resynchronize the package index files from their sources
# apt-get update
2.2 Tell apt to verify your RPM database.
# apt-get -f install
2.3 To update you package do:
# apt-get upgrade
If you want to see what this command will do, use the -s flag
for simulate
# apt-get -s upgrade
Then if you want to update specific package then name them, ie:.
# apt-get install ${pkg_name}
2.3 clean up:
# apt-get clean - clears out the local repository of
retrieved package files.
3. synaptic - SynAPTic is a simple GUI front-end for apt. This way
you can review, pick, and install individual packages if you want
more control.
Install synaptic by:
# apt-get install synaptic
After installing synaptic, you can keep you system updated by
just running synaptic periodically, and upgrading already installed packages.
The freshrpm site provide the Redhat security and bug fixes rpm a little after
they are issued by Red Hat. First update package cache, then install all upgradable
packages.