Install APT on CentOS

From Linux Box Solutions

Jump to: navigation, search

Installing APT in CentOS

I'm a regular user and supporter of all Linux Distro's. From using all the different distributions you run into favoring certain tools that may not be in other distributions. The last time I needed APT on a CentOS machine was about a month ago and the command:

yum install apt

worked perfectly fine! Now when I try the above listed command I get:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: www.gtlib.gatech.edu
 * base: centos.mirror.nac.net
 * extras: centos.omnispring.com
 * updates: ftp.usf.edu
Setting up Install Process
No package apt available.
Nothing to do

This is absolutely not what I want. I want apt to install. So first we need to get some new repositories installed. Look below for you CentOS distribution and use the command underneath to install the RPM Forge repositories:

#  Red Hat Enterprise Linux 5 / i386:

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# Red Hat Enterprise Linux 5 / x86_64:

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
# Red Hat Enterprise Linux 4 / i386:

rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
# Red Hat Enterprise Linux 4 / x86_64:

rpm -Uhv http://apt.sw.be/redhat/el4/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm
# Red Hat Enterprise Linux 3 / i386:

rpm -Uhv http://apt.sw.be/redhat/el3/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el3.rf.i386.rpm
# Red Hat Enterprise Linux 3 / x86_64:

rpm -Uhv http://apt.sw.be/redhat/el3/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el3.rf.x86_64.rpm
# Red Hat Enterprise Linux 2 / i386:

rpm -Uhv http://apt.sw.be/redhat/el2.1/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el2.rf.i386.rpm
# Red Hat Linux 9 / i386:

rpm -Uhv http://apt.sw.be/redhat/9/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.rh9.rf.i386.rpm
# Red Hat Linux 7.3 / i386:

rpm -Uhv http://apt.sw.be/redhat/8.0/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.rh7.rf.i386.rpm

Now running the command:

yum install apt

Success! The apt software installs fine. The normal commands listed below for APT work fine now:

apt
apt-get
apt-get install "packagename_no_quotes"

Installing the RPM Forge repositories allows a lot more software to be available to you. Installing these repositories will also allow you to install YUM, if you system uses apt-get to install software packages and the yum package isn't immediately available with using command:

apt-get install yum

--Linux Box Solutions | Open Source For All Your Business Needs 19:34, 2 October 2010 (EDT)

Personal tools