APT Package Manager

Advanced Package Tool (APT)


  • APT is a package manager for Debian-based Linux systems. This provides one approach for searching, installing, and removing software.


Always make sure you trust any repositories added to these files!
  • APT searches in package repositories for available software which is defined in the following files:
    • /etc/apt/sources.list
    • /etc/apt/sources.list.s


# discover package source
dpkg -S /path/to/file # output provides package name
apt info <packageName> # output provides package source
  • sudo apt update - Updates the local APT cache
  • sudo apt upgrade - Installs updates for any packages found in the update command
  • sudo apt upgrade impacket-scripts - Updates a single package
  • apt search impacket-scripts - Searches for a specific package
  • apt show impacket-scripts - View a package's description
  • sudo apt install nmap - Installs a package
  • sudo apt remove nmap - Uninstalls a package
  • sudo apt remove --purge nmap - Uninstalls a package and removes any user config files