3.2 Package Management
Linux uses repositories (“repos”) to manage software securely. You generally do not download .exe files from the web.
Debian / Ubuntu (apt)
Section titled “Debian / Ubuntu (apt)”Uses .deb packages (see [[/en/module-1/1-overview|Distribution Families]]).
RHEL / Rocky (dnf)
Section titled “RHEL / Rocky (dnf)”Uses .rpm packages. dnf is the successor to yum.
Practice Exercises
Section titled “Practice Exercises”- Update First:
- Run the update command appropriate for your system (
apt updateordnf check-update).
- Run the update command appropriate for your system (
- Install Tools:
- Install
gitandcurl. - Verify they are installed by checking their versions (
git --version).
- Install
- Search:
- Search for a package named
htop. - Install it and run it.
- Search for a package named
- Clean:
- Remove
htopif you don’t want it.
- Remove