Skip to content

Instantly share code, notes, and snippets.

@rkaneko
Last active December 18, 2015 01:29
Show Gist options
  • Save rkaneko/5704161 to your computer and use it in GitHub Desktop.
Save rkaneko/5704161 to your computer and use it in GitHub Desktop.
Install aptitude .
$ sudo apt-get -y install aptitude
########################################################
# aptitude cheet sheet ref
## http://www.garunimo.com/program/linux/aptitude.xhtml
# help
$ aptitude help
# search pkg
$ aptitude search here-is-query
# show pkg info
$ aptitude show here-is-pkg
# If you show pkg info verbosely, add option -v (verbose level is 1 or 2)
$ aptitude show -v here-is-pkg
# install pkg
$ aptitude install here-is-pkg
# remove pkg
$ aptitude remove here-is-pkg
# remove pkg and its config file
$ aptitude purge here-is-pkg
# reinstall pkg
$ aptitude reinstall here-is-pkg
# update pkgs info and upgrade all pkgs
$ aptitude update
$ aptitude safe-upgrade
# remove cached pkgs which you can't install yet
$ aptitude autoclean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment