Recall & Review
beginner
What command installs a package using apt on Debian-based systems?
Use
sudo apt install <package-name> to install a package. It downloads and sets up the software for you.Click to reveal answer
beginner
How do you update the list of available packages on a Debian-based system?
Run
sudo apt update. This refreshes the package list so your system knows about the latest versions.Click to reveal answer
beginner
What command removes a package but keeps its configuration files?
Use
sudo apt remove <package-name>. It deletes the program but leaves settings in case you reinstall later.Click to reveal answer
intermediate
How do you completely remove a package including its configuration files?
Use
sudo apt purge <package-name>. This deletes the program and all its settings.Click to reveal answer
beginner
What command upgrades all installed packages to their latest versions?
Run
sudo apt upgrade. It updates all your software to the newest versions available.Click to reveal answer
Which command updates the package list on a Debian-based system?
✗ Incorrect
sudo apt update refreshes the package list. upgrade installs updates, install adds new packages, and remove deletes packages.What does
sudo apt purge <package> do?✗ Incorrect
purge deletes the package and all its configuration files.Which command installs a new package?
✗ Incorrect
sudo apt install downloads and installs new software.If you want to keep configuration files after removing a package, which command do you use?
✗ Incorrect
remove deletes the package but keeps config files; purge deletes both.What command upgrades all installed packages to their latest versions?
✗ Incorrect
sudo apt upgrade updates all installed packages to the newest versions.Explain the difference between
apt remove and apt purge.Think about what happens to the settings when you uninstall.
You got /4 concepts.
Describe the steps to update your system's software using apt.
Two commands are needed: one to check, one to install.
You got /4 concepts.