1/16
These flashcards cover key concepts and commands related to the Linux apt command, including installation, updating, and removal of software packages.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No study sessions yet.
What is the role of package managers like the Advanced Package Tool (apt) in Linux?
They automate software package management, allowing users to install, update, and remove packages while resolving dependencies.
What command is used to view the help options for the apt command?
apt --help
What is the difference between the 'apt' and 'apt-get' commands?
'apt' is more user-friendly, while 'apt-get' provides granular control over management and configuration options.
What command would you use to view a list of all installed packages?
sudo apt list
What does adding '| less' to the command 'sudo apt list' do?
It allows you to scroll through the long list of packages in a manageable way.
How do you search for packages related to a specific criterion using apt?
Run the command 'sudo apt search [criteria]'.
What command retrieves specific information about a package?
sudo apt show PackageName
What does the command 'sudo apt update' accomplish?
It downloads package information from all configured sources in the /etc/apt/sources.list file.
What command installs a software package using apt?
sudo apt install PackageName
How can you reinstall a package that is not running as expected?
Run the command 'sudo apt reinstall PackageName'.
What command would you use to remove an installed package but keep its configuration files?
sudo apt remove PackageName
What does the 'purge' option do when removing a package?
It completely removes the package along with its configuration files.
What command upgrades all currently installed packages on the system?
sudo apt upgrade
What is the purpose of the 'full-upgrade' option?
It upgrades the system and may remove installed packages if necessary for the upgrade.
What command is used to automatically remove packages that are no longer needed?
sudo apt autoremove
What does the 'edit-sources' command enable you to do?
It allows you to edit the /etc/apt/sources.list file in a text editor.
What is the function of the 'satisfy' option in apt?
It checks if a package's dependencies are installed on the system.