102.4 Flashcards
Which command is used to install a package using the Debian package management system?
A) apt-get install
B) rpm -i
C) yum install
D) dnf install
A) apt-get install
How do you remove a package but keep its configuration files using apt?
A) apt-get purge
B) apt-get remove
C) dpkg -r
D) apt-get clean
B) apt-get remove
Which command updates the package list in a Debian-based system?
A) apt-get update
B) dpkg –update
C) apt-get upgrade
D) apt-cache refresh
A) apt-get update
What is the purpose of the dpkg command in the Debian package management system?
A) To download packages from repositories
B) To install, remove, and manage Debian packages
C) To update package list
D) To configure system services
B) To install, remove, and manage Debian packages
How can you check the status of a specific package using dpkg?
A) dpkg -i
B) dpkg –status
C) apt-get check
D) dpkg -l package_name
D) dpkg -l package_name
Which command will fully remove a package and its configuration files?
A) apt-get remove
B) apt-get purge
C) dpkg -i
D) apt-cache remove
B) apt-get purge
What does ‘apt-cache search’ do?
A) It clears the package cache
B) It searches for available packages in the repository
C) It installs packages from the cache
D) It removes unused package files
B) It searches for available packages in the repository
How can you upgrade all packages on a Debian-based system?
A) apt-get upgrade
B) dpkg –upgrade
C) apt-cache update
D) apt-get update
A) apt-get upgrade
Which command shows details about a package?
A) apt-cache show package_name
B) apt-get info package_name
C) dpkg -l package_name
D) dpkg –info package_name
A) apt-cache show package_name
How can you list all installed packages on a Debian-based system?
A) dpkg –list
B) apt-get list-installed
C) rpm -qa
D) apt-cache list
A) dpkg –list
Which command installs a package without upgrading the system?
A) apt-get install package_name
B) apt-get dist-upgrade package_name
C) dpkg –upgrade package_name
D) apt-get update package_name
A) apt-get install package_name
How can you download a package without installing it?
A) apt-get download package_name
B) dpkg -r package_name
C) apt-cache show package_name
D) apt-get install –no-install
A) apt-get download package_name
What command fixes broken dependencies on a Debian-based system?
A) dpkg –fix-broken
B) apt-get install -f
C) apt-get fix-dep
D) dpkg –repair
B) apt-get install -f
How can you remove orphaned packages automatically?
A) apt-get autoremove
B) dpkg -r –orphans
C) apt-cache clean
D) dpkg –autoremove
A) apt-get autoremove
What does ‘dpkg-reconfigure’ do?
A) It reconfigures installed packages
B) It reinstalls a package
C) It updates the package cache
D) It cleans up configuration files
A) It reconfigures installed packages