May 2, 2016

Common Ubuntu Packages Commands

Update list of packages.

sudo apt-get update

Install package.

sudo apt-get install PACKAGE

Uninstall package and configuration.

sudo apt-get purge PACKAGE

Search packages.

sudo apt-cache search STRING

Show package info.

sudo apt-cache show PACKAGE

List all installed packages.

dpkg --list

Reference:

https://help.ubuntu.com/community/SwitchingToUbuntu/FromLinux/RedHatEnterpriseLinuxAndFedora#Command_Line_Tools