#1
Which command is used to install packages in Debian-based Linux distributions?
apt-get
ExplanationPackage installation using the 'apt-get' command in Debian-based systems.
#2
What does the 'yum' command do in Red Hat-based Linux distributions?
All of the above
ExplanationMultiple functions of the 'yum' command in Red Hat-based systems.
#3
Which command is used to list all installed packages in Debian-based Linux distributions?
dpkg -l
ExplanationListing all installed packages with 'dpkg -l' in Debian-based systems.
#4
Which command is used to refresh the package database in Debian-based Linux distributions?
apt-get update
ExplanationRefreshing the package database with 'apt-get update' in Debian-based systems.
#5
Which of the following commands is used to search for a package in the Arch Linux package repositories?
pacman -Ss
ExplanationSearching for packages with 'pacman -Ss' in Arch Linux.
#6
Which command is used to remove a package along with its configuration files in Debian-based Linux distributions?
apt remove
ExplanationRemoving a package with configuration files using 'apt remove' in Debian-based systems.
#7
In RPM-based Linux distributions, which command is used to query information about installed packages?
yum info
ExplanationQuerying package information with 'yum info' in RPM-based systems.
#8
What does the 'zypper' command do in openSUSE Linux?
All of the above
ExplanationMultiple functions of the 'zypper' command in openSUSE Linux.
#9
Which command is used to upgrade all installed packages in Debian-based Linux distributions?
apt dist-upgrade
ExplanationUpgrading all installed packages using 'apt dist-upgrade' in Debian-based systems.
#10
What does the 'rpm -e' command do in RPM-based Linux distributions?
Removes packages
ExplanationRemoving packages with 'rpm -e' in RPM-based systems.
#11
What is the purpose of the 'dpkg' command in Debian-based Linux distributions?
All of the above
ExplanationVarious purposes of the 'dpkg' command in Debian-based systems.
#12
What is the purpose of the 'pkginfo' command in Solaris?
Displays information about installed packages
ExplanationDisplaying information about installed packages with 'pkginfo' in Solaris.
#13
Which command is used to force the installation of a package in Debian-based Linux distributions?
apt-get install --reinstall
ExplanationForcing the installation of a package with 'apt-get install --reinstall' in Debian-based systems.
#14
Which command is used to downgrade a package to a specific version in Debian-based Linux distributions?
apt-get install =
ExplanationDowngrading a package to a specific version with 'apt-get install =' in Debian-based systems.
#15
What is the purpose of the 'pkgadd' command in Solaris?
Installs packages
ExplanationInstalling packages with the 'pkgadd' command in Solaris.
#16
What does the 'rpm2cpio' command do in RPM-based Linux distributions?
Converts RPM packages to CPIO archives
ExplanationConverting RPM packages to CPIO archives with 'rpm2cpio' in RPM-based systems.