Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used to have apt available on my CentOS server, but I had to reinstall and now I have yum. I've searched on how to replace it with no results.

If anyone could help, thanks!

I am on CentOS 5.9, if that helps.

share|improve this question

closed as not constructive by John Gardeniers, kce, mdpc, EEAA, Tim Brigham Jan 28 '13 at 3:49

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 6 down vote accepted

While it may be possible to run a version of apt on a CentOS server, I'd strongly urge you to use the native yum commands, as that's the packaging and software delivery framework for CentOS and other Red Hat-like operating systems.

This apt and yum translation table can help if you're looking for the proper command equivalents between the two.

However, apt for CentOS does exist. Here's a Dag Wieers article detailing its use.

You'll need to install the RepoForge repository via rpm in order to be able to download the apt package. It's totally compatible, works and is supported... but also unnecessary, given that yum covers most needs.

share|improve this answer
I had apt before my reinstall. It worked perfectly fine, and I will not waste time having to figure out the respective names for each package I installed via apt for yum. I don't see why I shouldn't do it. Doesn't matter to me what package manager I use, I just want to use apt, and not yum. – alexpja Jan 28 '13 at 1:03
Then why not just use Debian or a derivative? – EEAA Jan 28 '13 at 1:07
@alexpja See my edited answer above. – ewwhite Jan 28 '13 at 1:10
@alexpja You won't be using it forever. You'll have to learn yum eventually. – Michael Hampton Jan 28 '13 at 1:19
@alexpja - seriously, you're swimming upstream here. You should either learn yum or switch to a Debian derivative. – EEAA Jan 28 '13 at 1:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.