What Is APT

This section provides a quick introduction on APT (Advanced Package Tool), which is the default software package manager on Ubuntu computers.

What Is APT? - APT (Advanced Package Tool) is the default package manager on Ubuntu computers. It allows you to:

You can get a list of DNF commands by running "apt help" on Ubuntu:

herong$ apt help

apt 1.6.17 (amd64)
Usage: apt [options] command

apt is a command line package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.

Most used commands:
  list - list packages based on package names
  search - search in package descriptions
  show - show package details
  install - install packages
  remove - remove packages
  autoremove - Remove automatically all unused packages
  update - update list of available packages
  upgrade - upgrade the system by installing/upgrading packages
  full-upgrade - upgrade the system by removing/installing/upgrading pac...
  edit-sources - edit the source information file

Actually, "apt" combines sub-commands from both "apt-get" and "apt-cache" commands as shown below.

apt install  = apt-get install
apt update   = apt-get update  
apt upgrade  = apt-get upgrade   
apt remove   = apt-get remove  
apt search   = apt-cache search 
apt show     = apt-cache show 
apt list

If you want to manage software packages in scripts, you should use "apt-get" and "apt-cache" commands, which return more predictable outputs.

Table of Contents

 About This Book

 Introduction to Ubuntu Systems

 GNOME - Desktop Interface and Environment

 Shell - The Command-Line Interpreter

 Process Management

 Memory Management

 Files and Directories

APT (Advanced Package Tool)

What Is APT

 "apt list" - List Software Packages

 "apt show" - Show Software Package Details

 "sudo apt install/remove" - Install/Remove Package

 "sudo apt autoremove" - Remove Unneeded Packages

 Manage "apt" Package Repositories

 APT Configuration Settings and Overrides

 APT Package Archives and Metadata

 Network Connection on Ubuntu

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

 Administrative Tasks

 References

 Full Version in PDF/EPUB