0
0
Linux CLIscripting~5 mins

Installing, updating, removing packages in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Asudo apt update
Bsudo apt upgrade
Csudo apt install
Dsudo apt remove
What does sudo apt purge <package> do?
ARemoves a package and its config files
BRemoves a package but keeps config files
CInstalls a package
DUpdates all packages
Which command installs a new package?
Asudo apt update
Bsudo apt remove
Csudo apt install
Dsudo apt upgrade
If you want to keep configuration files after removing a package, which command do you use?
Asudo apt purge
Bsudo apt upgrade
Csudo apt update
Dsudo apt remove
What command upgrades all installed packages to their latest versions?
Asudo apt update
Bsudo apt upgrade
Csudo apt install
Dsudo apt remove
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.