Advanced Packaging Toolkit (APT)

apt provides a high-level command line interface for package management system.

APT is a package management software, originated in Debian operating system. It uses dpkg as its back-end to manage .deb packages.

install

sudo apt install [package-name]

Installing from a list

However, if you’re working with a longer list of tools, it’s more efficient to create a tool list file (tools.list) and use it to automate installation. This ensures consistency and saves time during future setups.

cat tools.list
netcat
ncat
nmap
wireshark
sudo apt install $(cat tools.list | tr "\n" " ") -y

APT Repository List

The APT repository list is a configuraton file located at /etc/apt/sources.list on Debian-like operating systems, which containd the URLs of software repositories from which packages can be downloaded and installed. Each lines in this file specifies a different source, starting with the type of archive (like deb for binary packages).

  • To list all the URLS in the file:
cat /etc/apt/sources.list | grep -v "#"
Tip

On Parrot OS, the file is located at /etc/apt.sources.list.d/parrot.list

update

upgrade

autoremove

autoclean

Tip

You can combine all these commands into a single line:

sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y