Lesson 7 of 8

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.

0/4
In plain English

In simple terms: Manage packages with apt and dpkg. This means building enough understanding that you can apply this concept in a real scenario — not just answer a quiz question about it, but actually use it when it matters. Focus on the "why" behind the concept, not just the "what."

Why this matters

This objective builds a foundational skill that every security professional uses regularly. Mastering it gives you the vocabulary, mental models, and practical ability to tackle more advanced topics with confidence — and to communicate clearly with both technical and non-technical colleagues.

Real-world analogy

Think of it like learning to drive. You do not need to understand how the engine works to drive safely, but knowing the basics helps you diagnose problems and avoid mistakes that could cause accidents. The same principle applies here — foundational knowledge prevents costly errors.

What you will be able to do

Apply this skill in a real lab environment, explain it clearly to a colleague or client, and use it as a building block for the more advanced techniques that come later in this course.

Beginner tip

Do not try to memorize everything at once. Read through the material once to get the big picture, then go back and work through the lab. The hands-on practice is what makes the concepts stick — passive reading alone will not get you there.

Package Management · Objective 1 of 4

VIDEO
Loading video…
1

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 -y
2

Install 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 --help
3

Search 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