December 04, 2015

Using apt-get

Using apt-get to install, search, query and remove software on Debian and Ubuntu servers.

Using apt-get to install, search, query and remove software on Debian and Ubuntu servers.We cover the following commands to install, search, show info and remove Ubuntu packages:

# Install a package
sudo apt-get install [-y|-qq] package name

# Search for a package
sudo apt-cache search [-n] package name

# Show information about a package
sudo apt-cache show package-name

# Uninstall a package
sudo apt-get remove [--purge] package-name

# Uninstall unused dependencies
# which `remove` does not do
sudo apt-get autoremove

Resources

All Topics