Installing Software in Red Hat Linux
- Which package manager is commonly used in Red Hat Linux for installing
software?
A) apt
B) dnf
C) pacman
D) zypper
Correct Answer: B) dnf
- What command would you use to install a package named httpd using dnf?
A) dnf install httpd
B) dnf add httpd
C) dnf get httpd
D) dnf fetch httpd
Correct Answer: A) dnf
install httpd
- Which command is used to update all installed packages to their latest
versions in Red Hat Linux?
A) dnf upgrade
B) dnf update
C) dnf refresh
D) dnf install
Correct Answer: B) dnf
update
- What is the purpose of the --setopt option in the dnf command?
A) To specify a configuration
option for the command
B) To set the installation
directory
C) To enable verbose output
D) To remove a package
Correct Answer: A) To
specify a configuration option for the command
- Which command would you use to search for a package named vim in
the repositories?
A) dnf search vim
B) dnf find vim
C) dnf locate vim
D) dnf query vim
Correct Answer: A) dnf
search vim
- What file contains the repository configuration for dnf in
Red Hat Linux?
A) /etc/dnf.conf
B) /etc/yum.repos.d/
C) /etc/yum.conf
D) /etc/dnf.repos.d/
Correct Answer: B)
/etc/yum.repos.d/
- Which command would you use to remove an installed package named nginx?
A) dnf remove nginx
B) dnf delete nginx
C) dnf uninstall nginx
D) dnf erase nginx
Correct Answer: A) dnf
remove nginx (though dnf erase nginx is also valid)
- What is the purpose of the dnf clean all command?
A) To remove all installed
packages
B) To clear the cache and
metadata
C) To update the package manager
D) To reinstall all packages
Correct Answer: B) To clear
the cache and metadata
- Which command would you use to display detailed information about a
package named curl?
A) dnf info curl
B) dnf details curl
C) dnf show curl
D) dnf package curl
Correct Answer: A) dnf info
curl
- What is the default behavior of dnf when installing a
package that has dependencies?
A) It will fail if dependencies
are not met
B) It will automatically install
the required dependencies
C) It will prompt the user to
install dependencies manually
D) It will skip the installation
of the package
Correct Answer: B) It will
automatically install the required dependencies
Post a Comment
If you have any doubts, please let me know