Recall & Review
beginner
What is a repository in Linux package management?
A repository is a storage location on the internet or local network where software packages are kept. It allows your system to download and install software easily and safely.
Click to reveal answer
beginner
How do you update the list of available packages on a Debian-based system?
You run the command
sudo apt update. This refreshes the package list from all configured repositories so you can install the latest versions.Click to reveal answer
intermediate
What command adds a new repository on a Debian-based system?
You can add a new repository by editing the
/etc/apt/sources.list file or adding a file in /etc/apt/sources.list.d/. Then run sudo apt update to refresh.Click to reveal answer
beginner
What is the purpose of the
yum or dnf commands in repository management?yum and dnf are package managers for Red Hat-based systems. They manage repositories, install, update, and remove software packages.Click to reveal answer
beginner
Why is it important to keep your repositories updated?
Keeping repositories updated ensures you get the latest software versions, security patches, and bug fixes. It helps keep your system safe and running smoothly.
Click to reveal answer
Which command updates the package list on Ubuntu?
✗ Incorrect
sudo apt update refreshes the package list. upgrade installs updates, install adds new software, and remove deletes software.
Where are repository sources listed on Debian-based systems?
✗ Incorrect
Debian-based systems use /etc/apt/sources.list and /etc/apt/sources.list.d/ for repository info. /etc/yum.repos.d/ is for Red Hat-based systems.
What does the
dnf command do?✗ Incorrect
dnf is a package manager for Red Hat-based Linux systems. It handles software installation, updates, and repository management.
Why should you run
sudo apt update after adding a new repository?✗ Incorrect
Running sudo apt update downloads the latest package lists from all repositories, including any new ones you added.
What file format do repository configuration files usually have on Debian systems?
✗ Incorrect
Repository files on Debian systems usually have the .list extension, like example.list in /etc/apt/sources.list.d/.
Explain how to add a new software repository on a Debian-based Linux system and why it is necessary to update the package list afterward.
Think about where repository info is stored and what command refreshes package info.
You got /4 concepts.
Describe the role of package managers like apt, yum, and dnf in repository management.
Consider how these tools help keep your system software organized and up to date.
You got /4 concepts.