Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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 want to install the bz2 library from ssh to my CentOS server. I get it from the homepage and use

tar -xvf

command to extract it, but it does't have a configure file to compile and install it.

I need this library to install apt-get on CentOS and it needs this lib. How can I install it? I'm accessing the machine over SSH.

share|improve this question

CentOS uses yum instead of apt-get. You can probably make apt-get work, but most of the docs and articles you find on the web are going to assume yum.

share|improve this answer
I want to install apt-get by yum.I get it apt-get source ,when I want to compile it ,it goes wrong because of libbz2 is not installed on server. – Moein7tl Aug 10 '11 at 21:49
@Moein7tl I don't have a CentOS box in front of me, and I haven't tried these instructions before, but this article supposedly walks you through installing apt using yum. At a glance, it looks reasonable, but that's all I can say for it. I will say one more time that it probably makes more sense to just learn how to use yum than trying to manage a CentOS using apt, but you know your own needs best. – Hank Gay Aug 11 '11 at 9:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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