apt, dpkg, git, Python PiP (Linux Package Management) // Linux for Hackers // EP 5
About this video
Episode 5 of a Linux for Hackers series, filmed in Hack The Box Academy’s browser-based PwnBox on a Debian-based Parrot OS system, explains Linux package management by contrasting tools in order of convenience. First dpkg, the low-level manager: he downloads Discord’s .deb file — described as the Debian equivalent of a Windows .exe — and tries sudo dpkg -i, which fails because dpkg does not resolve dependencies, in this case missing libraries Discord needs. APT, the Advanced Package Tool, is the high-level alternative: sudo apt update refreshes the package list from repositories configured in the sources list, sudo apt install fetches a package by name plus all its dependencies, and apt –fix-broken install repairs the broken Discord install. He also covers apt list, show, and search, removing software with apt remove (which keeps config/user data) versus apt purge (which removes everything), and apt upgrade versus full-upgrade. He then introduces aptitude’s interactive interface, Snap — installed via apt install snapd and used to install VS Code with sudo snap install code –classic — and language-specific managers pip/pip3 for Python and gem for Ruby. Finally he uses git clone to pull a subdomain-listing tool from GitHub, installs its Python requirements with pip3 install -r requirements.txt, and runs it against hackthebox.eu.
Key takeaways
- dpkg installs a local .deb file but does not handle dependencies; APT is the everyday tool because it pulls the package and everything it depends on from a repository.
- Run sudo apt update before installing so APT’s local list matches the repositories; repos can be inspected and extended in the APT sources list.
- apt remove uninstalls a program but leaves its configuration and user data, while apt purge removes everything; upgrade updates packages and full-upgrade can also remove obsolete ones.
- Snap is a store-based alternative that makes newer apps available immediately across distros, while pip (Python) and gem (Ruby) manage language-specific packages and script dependencies.
- The GitHub workflow is git clone the repository, install its requirements.txt with pip3, then run the script — the standard route for community hacking tools not in official repos.
Episode details: published June 4, 2021 · 26:05 long. Summary written by Self Growth Videos from the episode itself. Business results and any income figures mentioned are NetworkChuck’s own claims, shared for education — they are not typical or guaranteed.
← Previous: will my dad LOSE his job? (a TRADITIONAL IT infrastructure engineer) · Next: you need to learn Load Balancing RIGHT NOW!! (and put one in your home network!) →
All NetworkChuck videos · NetworkChuck profile · NetworkChuck on YouTube





