Package Management
Package management is how you install, update, and remove software on Linux systems, and understanding it is essential for maintaining a security-focused environment. You will learn apt (Debian/Kali), how to add third-party repositories, and how to install tools from source when packages are not available. Keeping your tools updated is a basic but critical security practice.
Learning Objectives — Deep Dive
Each objective below is broken down into plain English so you know exactly what you are learning, why it matters, and what you will be able to do when you are done. Mark each one complete as you work through the lesson.
Update Kali Linux
Run 'sudo apt update' to refresh the package index from all configured repositories, then 'sudo apt upgrade -y' to install all available updates. On Kali Linux, keeping tools updated is important because security tools are frequently updated with new features, bug fixes, and support for new vulnerability classes. Run 'sudo apt full-upgrade -y' instead of 'upgrade' to also handle packages that require removing or installing additional dependencies. After a major upgrade, reboot with 'sudo reboot' to ensure the new kernel and libraries are loaded.
sudo apt update && sudo apt upgrade -yInstall a new tool
Run 'sudo apt install gobuster -y' to install Gobuster, a directory and DNS brute-forcing tool. The apt package manager handles dependency resolution automatically — it will install any libraries or other packages that gobuster requires. After installation, run 'gobuster --help' to verify it installed correctly and see the available options. For tools not available in the apt repositories, you can install from GitHub: 'git clone <repo-url> && cd <tool-dir> && go build .' for Go tools, or 'pip3 install <tool>' for Python tools.
sudo apt install gobuster -y && gobuster --helpSearch for a package
Run 'apt search <keyword>' to search for packages matching a keyword — for example 'apt search wordlist' to find wordlist packages available in the Kali repositories. The output shows the package name, version, and a brief description. Use 'apt show <package-name>' to see detailed information about a specific package including its dependencies, installed size, and full description. Run 'dpkg -l | grep <keyword>' to search only among already-installed packages. Kali Linux's repositories include hundreds of security tools organized into metapackages — 'kali-tools-web' installs all web application testing tools at once.
apt search wordlist | head -20