0
0
Linux CLIscripting~5 mins

apt (Debian/Ubuntu) basics in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Aapt remove
Bapt upgrade
Capt install
Dapt update
What does sudo apt install git do?
AInstalls git package
BUpdates package list
CUpgrades all packages
DRemoves git package
Which command upgrades all installed packages to their latest versions?
Aapt clean
Bapt update
Capt upgrade
Dapt autoremove
How do you remove a package and its configuration files?
Aapt purge
Bapt remove
Capt clean
Dapt update
What command frees disk space by deleting downloaded package files?
Aapt install
Bapt clean
Capt update
Dapt upgrade
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.