0
0
Linux CLIscripting~5 mins

Repository management in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Asudo apt update
Bsudo apt upgrade
Csudo apt install
Dsudo apt remove
Where are repository sources listed on Debian-based systems?
A/etc/apt/sources.list
B/etc/yum.repos.d/
C/usr/bin/repos
D/var/lib/repos
What does the dnf command do?
ACreates new Linux users
BUpdates Windows software
CManages packages and repositories on Red Hat-based systems
DFormats hard drives
Why should you run sudo apt update after adding a new repository?
ATo clear the cache
BTo uninstall old packages
CTo reboot the system
DTo refresh the package list and include the new repository's packages
What file format do repository configuration files usually have on Debian systems?
A.xml
B.list
C.conf
D.repo
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.