Cheat Sheet final - GitHub Pages

Cheat Sheet for apt-get commands

Update and Upgrade

sudo apt-get update

Updates the package database

sudo apt-get upgrade

Upgrades an already installed package

sudo apt-get update && sudo apt-get upgrade -y

Update your entire system packages

Search for packages

apt-cache search apt-cache pkgnames

Searches for packages similar to the search term Searches for a specific package

apt-cache showpkg

Shows version, dependencies etc for the package

Install Packages

sudo apt-get install

sudo apt-get install --noupgrade

sudo apt-get install -only-upgrade

sudo apt-get install =

Install one or several programs simultaneously Only install an not already program Only upgrade an already installed program Install a specific version of a program

Remove installed packages

sudo apt-get remove sudo apt-get purge

Remove a program Remove a program and its configuration files

Clean the system

sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove

Cleans the local repository cache of retrieved packages Cleans retrieved packages that have newer version now Cleans dependencies of an already removed program

With love from: It's FOSS

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download