Hey everyone. I need to use apt-get and ipkg in my CentOS. I have tried many tutorials about installing apt-get but non of them worked for me. Also I haven't found anything regarding installing ipkg. Can anyone help?

3 Years
Discussion Span
Last Post by rubberman

Unfortunately, the Linux world is full of untryed paths. So is a bunch types of distro's. Amongst them, your CentOS. And the worst is yet to come: there is a little support available for this distro too. Regardind the similarities with other OS's from the family, you will find many problems with that distro. Still unsolved. Maybe in the future... In your place, I'd try some other distro. I tryed since now, severals... Mint was great (but some audio problems make me move forward with sadness, not necessary your case/your machine could be other structure with no problems on that matter), Netrunner OS was other option that captivates me (unfortunately other problems occured, even the OS was gourgeous) Xubuntu amazes me with the stability and low resources needed (also the versatility), Lubuntu was great too, but finnaly I reach here, where I am standing: Zorin OS 6. Great for lazy users, amazing support from Ubuntu community, versatility as I never find on anything else and wonderfull when you come from Windows world. Friendly with the most stupid user if necessary, he will never let you down in any circumstances. Got a great looking interface, similar to Windows, but without idiotic Microsoft brand instabilities and resources waiste. Wanna try some zero troubles OS? Zorin is my recomandation!


I beg to differ, CentOS is a very well-established distro of Linux. It is one of the main free alternatives to the big names in server distributions of Linux (RHEL and SLES). If you want a stable server-grade Linux distribution for free (no support plan costs), then CentOS is really good option, so are the up-stream distributions like Fedora (ahead of RHEL) and OpenSUSE (ahead of SLES).

I need to use apt-get and ipkg in my CentOS.

I don't understand why you want to install a Debian package system on a Red Hat system. What's wrong with the Red Hat package system (rpm and yum)? The apt-get command is equivalent to yum, but the latter is for distros that use Debian packages (Debian, Ubuntu, Mint, etc..), while the former is for distros that use Red Hat packages (Fedora, RHEL, CentOS, SLES, OpenSUSE, etc..). Similarly with ipkg / dpkg versus rpm.

Is there a really good reason why you want to rip out the Red Hat package manager from your OS, and transplant the Debian package manager instead? I don't think this is really possible without some crazy amount of work.

And what are you going to do once you have installed Debian package managers, which repository will you connect to? Debian repos? Are you gonna translate your own packages (take rpm packages, convert them to deb packages, upload them to a private repository, and the install them with apt-get)? Seems like a lot of trouble.

If you want a Debian-based distribution, get a Debian-based distribution.


As Mike2k said, apt-get/aptitude/synaptic/dpkg are package management tools for Debian-based distributions such as Debian, Ubuntu, Mint, et al. For RedHat-based distributions you can use yum, or rpm. That said, yum is the current preferred package manager for RH distributions as it deals with dependencies much better than rpm, whereas with rpm you are pretty much on your own. There are rare occasions where using rpm is called for, but only in rare, and advanced situations, and then it is a case of caveat developer (developer beware!)... :-)

FYI, Suse distributions use yast, which is also an rpm-based package manager. So, if you want to install an rpm meant for a RedHat system, it may also work on a Suse/OpenSuse system (and vice-versa). Again, caveat developer/user!


Thanks a lot for the responses . I have to use centOS becuase of the kernel version I need a 2.6 kernel. I can give up on apt-get but I need ipkg to install . ipk packages. What is the alternative of ipkg to install .ipk?


Re. ipkg for installing .ipk packages. Let me do some research and get back to you on that. I've been running RHEL/CentOS/SL systems for about 8 years now and never ran into that requirement! :-)

Ok. Here is a link to an RPM that will install the ipkg installer on Red Hat 6.x or compatible (such as CentOS) systems: http://rpm.pbone.net/index.php3/stat/4/idpl/21706162/dir/redhat_el_6/com/ipkgbuild-0.8.0-1.el6.pp.noarch.rpm.html

Edited by rubberman


Thanks a lot now I have tried to do this to install it

rpm -Uvh ipkgbuild-0.8.0-1.el6.pp.noarch.rpm 

it gave me the package already installed. When I tried to run the command ipkg it says there is no such command. Can you please help to install it


I have noticed that it installed ipkgbuild. I searched about it and then I used

ipkgbuild --install somepackge.ipk

but it gave me the following error:
not int gzip format. Why this is happeneing ?


Don't know - never used it before. I found it with a Google search. FWIW, you should have installed the rpm with yum, not rpm since the rpm command won't deal with dependencies. I would suggest that you remove it, and then reinstall it with yum. That may help. No promises though. You are treading in mostly uncharted territory. Also, you might want to post the output of "ipkgbuild --help" and the man page for ipkgbuild (man ipkgbuild). We may see something that will help you sort out your problems.

Edited by rubberman

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.