RedHat apt

From Noah.org
Revision as of 14:14, 8 August 2007 by Root (talk | contribs)
Jump to navigationJump to search


I've always had mixed feelings about Red Hat and RPMs. I never cared for `up2date` because the repository is so small. Getting YUM to work on RHEL4 was like trying to pass a kidney stone. Then I discovered that you can get Apt for Red Hat (I use RHEL4-64bit). Not only that, but it was super easy to install.

You just have to grab one RPM from Dag RPM Repository. For example, on my system I did the following (for some reason I had to download it first. I could not install directly from the URL):

 wget http://dag.wieers.com/rpm/packages/apt/apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm
 rpm --install apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm

Now welcome to Apt! You just need to update your apt cache and start using apt:

 apt-get update

The default repository is RPMforge. Note that this version of Apt uses RPMs, not DEB packages, so it's totally compatible with any other RPM management tools you may have used.

Errors

If you get errors like these:

error: Failed dependencies:
        librpm-4.2.so()(64bit) is needed by apt-0.5.15lorg3.2-1.el3.rf.x86_64
        librpmdb-4.2.so()(64bit) is needed by apt-0.5.15lorg3.2-1.el3.rf.x86_64
        librpmio-4.2.so()(64bit) is needed by apt-0.5.15lorg3.2-1.el3.rf.x86_64

Then you are probably installing the wrong apt RPM. Go back to Dag Apt RPMs and confirm that you are getting the RPM that matches your Red Hat platform.