#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
Which command is used to install a local package file in Debian-based Linux distributions?
dpkg -i
ExplanationInstalling a local package file with 'dpkg -i' in Debian-based systems.
#12
In which directory are the repository configuration files usually located in Debian-based Linux distributions?
/etc/apt/sources.list.d/
ExplanationDefault location of repository configuration files in Debian-based systems.
#13
Which command is used to remove a package without removing its dependencies in Debian-based Linux distributions?
apt-get purge
ExplanationRemoving a package without its dependencies using 'apt-get purge' in Debian-based systems.
#14
What does the 'dnf list' command do in Fedora Linux?
Lists all available packages
ExplanationListing all available packages with 'dnf list' in Fedora Linux.
#15
In Debian-based Linux distributions, what does the 'apt-cache search' command do?
Searches for available packages
ExplanationSearching for available packages with 'apt-cache search' in Debian-based systems.
#16
Which command is used to list the contents of a package file in Debian-based Linux distributions?
dpkg -c
ExplanationListing contents of a package file with 'dpkg -c' in Debian-based systems.
#17
In Red Hat-based Linux distributions, which command is used to enable a repository?
yum-config-manager --enable
ExplanationEnabling a repository with 'yum-config-manager --enable' in Red Hat-based systems.
#18
Which command is used to clean up cached package files in Debian-based Linux distributions?
apt-get clean
ExplanationCleaning up cached package files with 'apt-get clean' in Debian-based systems.
#19
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.
#20
What is the purpose of the 'pkginfo' command in Solaris?
Displays information about installed packages
ExplanationDisplaying information about installed packages with 'pkginfo' in Solaris.
#21
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.
#22
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.
#23
What is the purpose of the 'pkgadd' command in Solaris?
Installs packages
ExplanationInstalling packages with the 'pkgadd' command in Solaris.
#24
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.
#25
What is the purpose of the 'pkgdelete' command in FreeBSD?
Removes packages
ExplanationRemoving packages with the 'pkgdelete' command in FreeBSD.