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
Which file contains information about the repositories?
A) /etc/apt/sources.list
B) /etc/apt/repositories
C) /var/lib/apt/lists
D) /etc/dpkg/repositories
A) /etc/apt/sources.list
Which command lists all dependencies of a package?
A) apt-cache depends package_name
B) dpkg –depends package_name
C) apt-get check package_name
D) dpkg -d package_name
A) apt-cache depends package_name
Which command cleans the downloaded package files to free up space?
A) apt-get clean
B) dpkg –clean
C) apt-get purge
D) apt-cache clear
A) apt-get clean
How can you simulate the installation of a package?
A) apt-get install -s package_name
B) dpkg –simulate package_name
C) apt-get install –dry-run package_name
D) apt-cache show package_name
A) apt-get install -s package_name
How can you check if a package is installed on the system?
A) dpkg -l package_name
B) apt-get list-installed package_name
C) dpkg -s package_name
D) apt-cache search package_name
A) dpkg -l package_name
How can you view the description of a package?
A) apt-cache show package_name
B) dpkg –info package_name
C) apt-get describe package_name
D) dpkg -l package_name
A) apt-cache show package_name
Which command marks a package to be held back from upgrading?
A) apt-mark hold package_name
B) apt-get remove –hold package_name
C) dpkg –hold package_name
D) apt-cache keep package_name
A) apt-mark hold package_name
How do you manually configure a package after installation?
A) dpkg-reconfigure package_name
B) apt-get configure package_name
C) dpkg –install package_name
D) apt-get reconfigure package_name
A) dpkg-reconfigure package_name
How can you view the changelog of a package?
A) apt-get changelog package_name
B) dpkg –changelog package_name
C) dpkg –log package_name
D) apt-cache changelog package_name
A) apt-get changelog package_name