I currently boot into 3 different distros on a semi-regular basis: Chakra (originally Arch-based, still using Pacman), openSUSE, and Kubuntu. I got tired of the problem this strip's script (allegedly) addresses and wrote a script
that checks which distro's package manager is available and runs the appropriate command for package search, install, info, remove, and upgrade, gracefully exiting if no supported package managers are found.
Now I'm tempted to add support for detecting if the package was actually found by the package manager, and if not then proceed with safer versions of everything here that I actually use, possibly even installing the relevant "package manager"-like programs as-needed....
Flumble wrote:I take it Arch is a rare distro? Since none of the methods (well, except cd-ing and running make —assuming you've setup the system with base-devel) work out of the box.
vkuzkokov wrote:Why no emerge?
svchost wrote:The real question is: Where is zypper?
Running "pm install package" with my script installed will correctly run whichever of pacman, zypper, or apt-get you have installed and use it to install "package". If you submit a bug report or pull request with public domain code (either written by you or explicitly placed in the public domain by its author) to add your favorite package manager (e.g., emerge), I'll gladly add the improvement to the script.
Generation 0: The first time you see this, copy it into your signature and change it so that it looks like you inspired this signature. Social experiment.