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.
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.
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.
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
- Predict the result
- Run the guided lab
- Compare the output
- Explain your choice
A worked example
Guided lab
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
- Debian reference: Linux fundamentals ↗www.debian.org
Apply what you learned
Your private practice
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.