Recall & Review
beginner
What does the
apt update command do?It refreshes the list of available packages and their versions from the software sources. It does not install or upgrade any packages.
Click to reveal answer
beginner
How do you install a package named
curl using apt?Use the command
sudo apt install curl. This downloads and installs the package and its dependencies.Click to reveal answer
beginner
What is the purpose of
apt upgrade?It upgrades all installed packages to their latest available versions without removing any packages.
Click to reveal answer
intermediate
How can you remove a package but keep its configuration files?
Use
sudo apt remove package_name. This removes the package but leaves configuration files intact.Click to reveal answer
intermediate
What command cleans up downloaded package files that are no longer needed?
The command
sudo apt clean deletes the local repository of retrieved package files to free up disk space.Click to reveal answer
Which command updates the package list but does not install or upgrade packages?
✗ Incorrect
apt update refreshes the package list only. It does not change installed packages.
What does
sudo apt install git do?✗ Incorrect
This command installs the git package and its dependencies.
Which command upgrades all installed packages to their latest versions?
✗ Incorrect
apt upgrade upgrades installed packages without removing any.
How do you remove a package and its configuration files?
✗ Incorrect
apt purge removes the package and its config files.
What command frees disk space by deleting downloaded package files?
✗ Incorrect
apt clean deletes cached package files to free space.
Explain the difference between
apt update and apt upgrade.Think about what changes on your system after each command.
You got /4 concepts.
Describe the steps to install a new package and then remove it while keeping its configuration files.
Focus on install and remove commands.
You got /2 concepts.