H-Sphere Sysadmin Guide

Updating RedHat With Apt-Get

 

As the up2date utility for RedHat automatic update has become a paid service by RedHat, you may use the free apt-get utility instead.

APT-RPM is a port of Debian's apt tools to a RPM based distribution (Red Hat, Conectiva, SuSE etc). apt-get is an advanced package management utility front-end which allows you to easily perform package installation, upgrading and removal. Dependencies are automatically handled, so if you try to install a package that needs others to be installed, it will download all needed packages and install them. More information on apt-get can be found at http://apt.freshrpms.net/ or http://apt-rpm.tuxfamily.org/.

Prior to updating your RedHat packages with apt-get, make sure to exclude the following services from the apt-get configuration:

  • postgresql, postgresql-server, postgresql-libs on CP and user postgresql boxes;
  • apache and apache-related packages on H-Sphere CP, WEB and MAIL boxes;
  • proftpd and related packages on H-Sphere WEB boxes;
  • qmail, vpopmail, ezmlm and related packages on H-sphere MAIL boxes.
  • bind and related packages on H-Sphere nameserver boxes.

To exclude packages, modify the corresponding part of your /etc/apt/apt.conf file, similar to this:

// Completely ignore the following packages (not regexp)
// Ignore { };
Ignore { "bind-utils"; };
// Do not try to update the following packages
// Hold { };
Hold { "postgresql*"; "apache*"; "proftp*"; "qmail*"; "vpopmail*"; "ezmlm*"; "sendmail*"; "bind*"; };

If you have accidentally upgraded your RedHat without excluding these packages, you need to downgrade bind and downgrade PostgreSQL.

Also, prior to running apt-get, back up /etc/rsyncd.conf, and restore it after the update.

 



© Copyright 1998-2004. Positive Software Corporation.
All rights reserved.