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.

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
- Open a terminal and run
sudo apt update. If a repository fails or APT reports a signing error, read the error before continuing. - Run
apt search tree. For an exact name, runapt-cache search --names-only '^tree$'. For an unfamiliar package, read the description withapt show tree. - Use
apt-cache policy treeto check the version APT would install and which repository offers it. You can preview the transaction withapt -s install tree. - Run
sudo apt install tree. Read the list of changes before confirming, especially if APT proposes removing other packages. After it finishes, runtree --versionto 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 updateagain. - 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.