Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install a non-Ubuntu package manager like Portage (Gentoo) or Pacman (Arch) on Ubuntu 12.04 LTS.

How do I do that??

PS - I'm a Newbie to Linux.

share|improve this question
1  
why you want it for? –  Web-E Jul 9 '12 at 11:06
2  
No specific reason. Just wondering. –  Akshit Baunthiyal Jul 10 '12 at 5:18
    
It is really easier to begin with fresh Gentoo or Arch install than achieve this in ubuntu –  baldrs Oct 15 at 16:34

4 Answers 4

up vote 9 down vote accepted

You don't. Gentoo, Arch, Redhat -- they all use different packaging systems. Gentoo's portage packages usually compile from source, Arch uses its own binary package format, Redhat uses RPM as packaging system -- and Debian as well as Ubuntu and Linux Mint use Debian Packages (.deb). Managing your local installation takes place using graphical frontends like Synaptic and Adept, or command-line tools like apt-get, aptitude and dpkg.

Though it is possible to install other package managers on Ubuntu (else they wouldn't be in the repositories), this is not to be recommended for the unexperienced user. One should be quite familiar with packages and package managers, how they work, etc. before even thinking about using them alongside. Otherwise it is very likely to end up with a very broken system -- as one package manager is not aware of the others, they would e.g. overwrite each others files/configurations, uninstalling a package with one package manager could break dependencies with the other, and more.

So for now I'd strongly suggest you stay with the package managers native to your system (see above).

share|improve this answer
    
Actually, we can. I just couldn't understand the contents of this guide. forums.gentoo.org/… –  Akshit Baunthiyal Jul 9 '12 at 11:19
    
@AkshitBaunthiyal: If you can't understand the guide, how do you know you can? In any case, you should ask on that Gentoo forum and not on AskUbuntu. –  izx Jul 9 '12 at 11:30
3  
I didn't say "you can't", but "you don't". For "normal users" I see no reason why they would want/need to do so. There may be special cases (or they wouldn't have those things in the repos), but an unexperienced user is more likely to mess up the system if mixing them. So before doing a thing like that, one should at least be familiar with the different packaging systems, and how the stuff works -- or you end up with a broken system, as one package manager is not aware of the other, files/configurations get overwritten, an uninstall by one breaks the dependencies on the other... –  Izzy Jul 9 '12 at 11:35

You cannot should not

Package managers are usually very tightly integrated with a particular Linux distribution, and you cannot usually install a native manager for one distro onto another and expect it to just work. (but see note at the end)

You can install the resulting packages, however, using tools to convert e.g. RPM to DEB, etc. This may be possible for Pacman packages. Portage, as you may be aware, builds everything from source, and you can do this on any distro, not just Gentoo.

Note: While some like yum are available in the Ubuntu Universe repositories, and even Pacman, Portage etc. could be installed in theory, it's a bad idea in practice because the packages themselves may not be suited (directory structure, etc.) for Ubuntu.

share|improve this answer
2  
I don't think the internal package structure is important here (that should be handled by the concerned manager). It's rather dependencies getting messed up, files/configurations overwriting each other... in short: system integrety being in danger. One should be quite familiar with packages, packaging, and package managers before playing with "alien things". –  Izzy Jul 9 '12 at 11:57
    
Thanks @Izzy, removed that part to avoid confusion. –  izx Jul 9 '12 at 11:58
1  
Yupp, you're welcome. As for the package conversion, alien might be worth mentioning as the most-commonly used tool for this task. Another possibility is using the extracted source RPM to create a .deb using debbuild. Or to use the source tarball (e.g. from Arch/Gentoo) and build your own .deb with checkinstall. –  Izzy Jul 9 '12 at 12:14

Due to the different packaging systems, the package managers are not interchangeable without a lot of blood, sweat and tears. Even then, there are a lot of dependency issues, and bugs, and errors, and rabbit holes that you cannot find your way out of. No, it's not it's not impossible, but, it's not recommended. PacApt is your best bet to use Pacman AND Portage commands in Ubuntu without destroying your computer. I believe that it supports commands from all of the major package managers. This is probably your safest bet for installation of Pacman/Portage-likeness in Ubuntu. Check it out.

If it isn't what you are looking for, your best bet (and recommended course of action) may be to install the distribution of the package manager that you want to use.

PacApt Brings Arch Linux’s Amazing Pacman Package Manager to Other Linux Distributions (Well, Sort Of)

Source:  LifeHacker
share|improve this answer
1  
Here is the README for pacapt github.com/icy/pacapt#readme –  Rinzwind Jul 9 '12 at 14:11
1  
This is fun. :D –  Akshit Baunthiyal Jul 10 '12 at 5:20

I can think of a good reason to want to install Portage on a Debian system. Dependency Hell. Not just for quagmires that people encounter when there are conflicts, but to get-RID of applications that are listed as dependencies that some users may not want.

Example?

What if I am paranoid and do not want "security enhanced Linux" or anything NSA produced on my system? I am not claiming that it is inherently a security flaw, though some exploits have been found in it. What if I am just biased and want it OFF of my system, for no other reason than because the idea of it irritates me? Why should it have to remove every other important application on my system to do it?....I am not saying not to include it in your default system if you want it, but why make it such an arbitrary dependency when it clearly is NOT one?

Netmask? It is not a true dependency for your network manager. I can see how it might be useful on servers, but why do desktop users need it? In fact, it can be a liability to users who want more anonymity by using virtual systems. It also has a bug that lets you do a really easy DDOS-attack, or did back when everyone was mad about it.

Avahi server? Again, could be useful, but why do I need my desktop advertising all its services and daemons? If I wanted more anonymity I would not want such a program advertising my computers services to any hacker or government stooge that wanted it. The printer should be the one saying "I am a printer"....My computer does not need to be the one saying "I am a computer listening on all these ports, are you a printer...are you a printer...are you a printer..". When I try to remove it, it takes too much with it.

Net-bios? Dont need it. Don't want it.

What is the standard reply? Don't remove it. Its an easy answer, but it sucks.

Something like Portage, which CAN install binaries, or even Slackwares style of file management, could do some good for a Debian/Ubuntu based operating system....but then users would just have too much control over their own computers, and we can have that in the open source world now can we?

share|improve this answer

Your Answer

 
discard

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.