Unix-like System Package Mangement
Compile
./configure --prefix=/your/absolute/install/directory
Debian link
apt-get update
apt-cache search <keyword>
apt-get install <package-name>
# Also remove the unnecessary package dependencies
apt-get autoremove openjdk-7-jdk
RedHat
yum search <keyword>
yum install <package-name>
Homebrew
Autoremove in
brew
linkbrew leaves
prints all packages that does not depend on other So you can do a logical and onbrew leaves
andbrew deps FORMULA
brew rm FORMULA brew rm $(join <(brew leaves) <(brew deps FORMULA))
use
brew_clean
script also in herebrew leaves > brew_packages brew_clean brew_packages
get info about a package
brew info <package-name>
use
homebrew-brewdler
to manage yourhomebrew
, runbrew brewdle dump
to backup yourhomebrew
brew --cache
shows brew caches path, runbrew cleanup
to clean up the cachesbrew --cellar
shows cellar path