How to Find and Install Packages With APT in Kali Linux

Updated on November 11, 2026.

In Kali Linux, run sudo apt update to refresh the package list, then use apt search to find a program. Check the exact package name with apt show and install it with sudo apt install.

Kali Linux terminal for finding and installing packages

APT commands you’ll use

Command What it does
sudo apt update Refreshes the local lists of software available from your configured repositories.
apt search tree Searches package names and descriptions for a word or pattern.
apt show tree Shows the description, dependencies, and other package details.
apt-cache policy tree Shows the installed version, install candidate, and where versions come from.
sudo apt install tree Installs the named package and the dependencies APT needs.

The example uses tree, a tool that displays folders and files. Use the actual package name for the software you want. See the APT manual.

Search, check, and install a package

  1. Open a terminal and run sudo apt update. If a repository fails or APT reports a signing error, read the error before continuing.
  2. Run apt search tree. For an exact name, run apt-cache search --names-only '^tree$'. For an unfamiliar package, read the description with apt show tree.
  3. Use apt-cache policy tree to check the version APT would install and which repository offers it. You can preview the transaction with apt -s install tree.
  4. Run sudo apt install tree. Read the list of changes before confirming, especially if APT proposes removing other packages. After it finishes, run tree --version to check the installation.

If you’re choosing software for a wider Linux setup, see our guide to useful Linux apps.

Fix “Unable to locate package”

  • Check the name. The program name you type to run an app can differ from its package name. Try a short search term and read the results.
  • Check the update output. APT can only search the repositories it has been able to read. Fix network or signing errors, then run sudo apt update again.
  • Check your Kali sources. Kali 2026.2 and newer clean installs use /etc/apt/sources.list.d/kali.sources. Older installs may use /etc/apt/sources.list. Compare your file with the instructions for your Kali branch. Adding Debian or Ubuntu repositories can create incompatible dependencies.

For the current configuration and signing-key steps, see Kali’s repository guide and its APT signing-key troubleshooting guide.

Frequently asked questions

Do I need sudo to search for packages?

Searches and package details work as a regular user. Use sudo for system changes such as refreshing the package lists or installing software.

Does apt update upgrade Kali Linux?

apt update refreshes the lists of available packages. Upgrading installed packages is a separate operation. See Kali’s update guide.

Can I install a package if APT reports a missing signing key?

First identify the repository that reported the error. For the official Kali archive, follow Kali’s keyring instructions and rerun the update. Keep signature verification enabled.