Package managers for UNIX cheat sheet

Aptitude

Update the manifests

apt-get update

Update the packages

apt-get upgrade

or sometimes this is also needed to resolve very complex dependency issues

apt-get dist-upgrade

Install new package

apt-get install foo

Remove a package

apt-get remove foo

or

apt-get purge foo # this will remove the configuration files (some)

Emerge

Update the manifest

emerge --sync

Update the packages

emerge --update --deep --with-bdeps=y @world

Rebuild all packages

emerge -e @world

Install new package

emerge foo

Remove package

emerge -C systemd

Install binary package

You need to have some binary package server

emerge --getbinpkgonly evolution



No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *