Package Management Flashcards
7 cards from real 010-160 practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Package Management flashcards as text
Which command is used to install a package on a Debian-based Linux system?
Answer: apt-get install package
apt-get install is the standard command for installing packages on Debian-based systems like Ubuntu.
What does the 'dpkg -l' command do?
Answer: Lists all installed packages
dpkg -l lists all installed packages on the system along with their version and description.
Which file on Debian-based systems contains the list of software repositories?
Answer: /etc/apt/sources.list
/etc/apt/sources.list defines the URLs and types of repositories that APT uses to fetch packages.
What is the purpose of running 'apt-get update'?
Answer: Refreshes the local package index from repositories
'apt-get update' downloads the latest package lists from configured repositories, refreshing the local index.
Which RPM command option is used to query information about an installed package?
Answer: rpm -q
rpm -q (query) retrieves information about installed packages from the RPM database.
On a Red Hat-based system, which command would you use to remove a package?
Answer: yum remove package
yum remove (or dnf remove on newer systems) is the correct command to uninstall packages on Red Hat-based distributions.
What is the file extension for packages managed by the RPM package manager?
Answer: .rpm
RPM packages use the .rpm extension and are used on distributions like Red Hat, CentOS, and Fedora.