SI Learning
0% read · Practice is tracked separately
← My learning
Version 1 · Chapter 20Reading mode

Use the package manager your system has

By the end: Identify package information without mixing instructions from unrelated distributions.

The idea

A package manager combines trusted repositories, dependency resolution, and installation records. Inspect the OS release before following installation advice. Debian-family and RPM-family systems use different tools. Do not run a collection of installers until one happens to work, and do not pipe an unreviewed download into a privileged shell.

Your command toolkit

apt

What it solves: Inspect a Debian-family package.

bash
apt show bash

apt provides an interactive interface to APT on Debian-family systems. It reads available metadata; installation and upgrades are separate actions. Prefer apt-get where a stable scripting interface is required.

yum

What it solves: Recognize an RPM-family package workflow.

bash
yum info bash

On some systems yum is legacy; on others it forwards to DNF. Follow the installed distribution's documentation rather than assuming every RPM-based host uses the same frontend.

rpm

What it solves: Query the installed RPM database.

bash
rpm -q bash

Checks the installed package record on RPM-based systems. rpm itself is a lower-level tool; a repository frontend normally resolves dependencies for installation.

Before you move on

Try the guided lab below. Compare the result with the explanation, then record your reasoning in the workbook. A missing optional program or a restricted environment is something to explain, not a reason to change system settings blindly.

Practice with evidence

  1. Predict the result
  2. Run the guided lab
  3. Compare the output
  4. Explain your choice

A worked example

Guided lab

bash
cat /etc/os-release
command -v apt
command -v dnf
command -v yum
command -v rpm

What to expect: The distribution identity plus paths for the package tools actually installed. Missing commands produce no path; you do not need all four.

Make it yours: Choose the package query that fits your distribution. Record the package version and describe where you would verify a repository before installing software.

Read further

Apply what you learned

Your private practice

What should decide whether you follow apt or yum/dnf instructions?

Answers are private. Completion requires the correct knowledge-check answer and a written response when an activity is included.

Restore a downloaded workbook

Choose a recovery file for this course and version. Review the recovered copy before saving it to your account.

Ask a question or report a problem

Describe what needs attention. Your private answer is shared only if you select the option below.

All learning paths
SI CENTRALIZATION · LEARN

Linux Command Line: from first command to confident practice

24 chapters · Your own pace

0 of 24 chapters complete