Package Management (APT) Flashcards
1
Q
What command is used to refresh package lists?
A
sudo apt update
This command retrieves the latest package information from the repositories configured on the system.
2
Q
What does the command ‘sudo apt upgrade’ do?
A
Upgrade all installed packages
This command upgrades all the installed packages to their latest available versions.
3
Q
How do you install a package using apt?
A
sudo apt install <package></package>
Replace <package> with the name of the package you want to install.</package>
4
Q
What is the command to remove a package?
A
sudo apt remove <package></package>
Replace <package> with the name of the package you wish to remove.</package>