網頁

2010年12月22日 星期三

How to install apt on CentOS 5.5

When I want to use apt to install or update some package on CentOS 5.5, the system show up "apt-get:command not found".

Why I want to replace yum with apt command? The reason has:

  • The some software is packed for Debian system and it is good utility for me.
  • I am a new beginner about Linux system. It is a little difficult for me to compile the package.
  • If apt command is used directly, it also will install the related dependence library or software.
  • When remove software,we don't worry whether exist garbage library or software on system.

If it exist so much benefit,how to install it on CentOS?
The following procedure is testing by myself and confirm the function is normal on CentOS 5.5 platform. Let's go to do it now!

(1). To confirm O.S. platform is i386 or x86_64 for downloading the true package.

(2).Download the rpmforge-release for i386 and save on /tmp

(3).Import DAG GPG key to RPM repository

(4).Verify downloaded file integrity and safety

(5).Install rpmforge package

(6).Install apt package by yum


(7).edit the file /etc/apt/source.list.d/os.list and add the following words for CentOS


After done the above steps,you can use apt-get and install the apt repositories now.


Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.