Package management

1.9 Identify common features and tools of the Linux client/desktop operating system.

šŸ“˜CompTIA A+ Core 2 (220-1202)


Package management is a core part of using Linux. It helps you install, update, and remove software on Linux systems. Linux does not usually have a ā€œdouble-click to installā€ like Windows; instead, it uses package managers to handle software efficiently.

Two common Linux package managers you need to know for the exam are:

  • APT (Advanced Package Tool)
  • DNF (Dandified Yum)

1. APT (Advanced Package Tool)

APT is used mainly in Debian-based Linux distributions, such as Ubuntu, Linux Mint, and Debian itself.

Think of APT as a tool that helps the system automatically download and install software from online repositories (official sources of software).

Key Commands

Here are some common APT commands you should know:

CommandWhat it Does
sudo apt updateUpdates the list of available software and versions from repositories.
sudo apt upgradeUpgrades all installed software to the latest versions.
sudo apt install [package_name]Installs a specific package. Example: sudo apt install firefox installs Firefox.
sudo apt remove [package_name]Removes a package but keeps configuration files.
sudo apt purge [package_name]Completely removes a package and its configuration files.
apt search [package_name]Searches the repository for a package.

How it works in IT

  • A system administrator uses APT to keep all software up-to-date, which is crucial for security.
  • IT staff can install software quickly on multiple machines using scripts with APT.

2. DNF (Dandified Yum)

DNF is used in Red Hat-based distributions, such as Fedora, RHEL (Red Hat Enterprise Linux), and CentOS.

DNF is the modern replacement for the older YUM package manager. It handles software packages in a similar way to APT but works on RPM packages (Red Hat Package Manager format).

Key Commands

CommandWhat it Does
sudo dnf check-updateChecks if updates are available for installed packages.
sudo dnf updateUpdates all installed packages to the latest versions.
sudo dnf install [package_name]Installs a package. Example: sudo dnf install vim installs the Vim text editor.
sudo dnf remove [package_name]Removes a package from the system.
dnf search [package_name]Searches repositories for a package.

How it works in IT

  • DNF helps IT teams manage servers efficiently by installing necessary software and applying updates.
  • Useful for security patches, ensuring servers are protected against vulnerabilities.

Why Package Managers Are Important

  1. Consistency – Ensures all systems in a network have the same versions of software.
  2. Security – Updates and patches can be applied automatically or easily, reducing vulnerabilities.
  3. Dependency Management – Packages often need other packages to work. Package managers handle these automatically.
  4. Efficiency – Saves time compared to manually downloading and installing software.

Exam Tip

  • Know which distributions use APT (Debian/Ubuntu) and which use DNF (Red Hat/Fedora).
  • Understand the basic commands for installing, removing, and updating software.
  • Understand why package management is critical in IT environments for security and maintenance.

Summary Table: APT vs DNF

FeatureAPTDNF
Linux FamilyDebian-basedRed Hat-based
Package Format.deb.rpm
Install Softwaresudo apt install [package]sudo dnf install [package]
Update Systemsudo apt upgradesudo dnf update
Search Packagesapt search [package]dnf search [package]

This covers everything for Package Management on Linux for the CompTIA A+ exam. It’s simple, focused on IT usage, and gives the commands you need to know.

Buy Me a Coffee