Recall & Review
beginner
What is the primary purpose of
yum and dnf on RHEL/CentOS systems?They are package managers used to install, update, and remove software packages on RHEL and CentOS Linux systems.
Click to reveal answer
beginner
How do you update all installed packages using
dnf?Run the command
dnf upgrade to upgrade all installed packages to their latest versions.Click to reveal answer
beginner
What command lists all installed packages using
yum?Use
yum list installed to see all packages currently installed on the system.Click to reveal answer
beginner
How can you search for a package named 'httpd' using
dnf?Use
dnf search httpd to find packages related to 'httpd'.Click to reveal answer
intermediate
What is the difference between
yum and dnf?dnf is the newer package manager that replaces yum with better performance, dependency resolution, and a modern codebase, but they share similar commands.Click to reveal answer
Which command installs the package 'nano' using dnf?
✗ Incorrect
To install a package, use 'dnf install '.
What does the command 'yum clean all' do?
✗ Incorrect
'yum clean all' clears cached data like metadata and packages to free space.
Which command lists all available packages using yum?
✗ Incorrect
'yum list available' shows packages you can install.
If you want to remove a package called 'httpd' using dnf, which command do you use?
✗ Incorrect
'dnf remove ' is the correct command to uninstall a package.
Which package manager is the default on newer RHEL 8+ systems?
✗ Incorrect
dnf replaced yum as the default package manager starting with RHEL 8.
Explain how to install, update, and remove packages using yum or dnf on RHEL/CentOS.
Think about the basic commands for package management.
You got /3 concepts.
Describe the main differences and similarities between yum and dnf.
Focus on performance, codebase, and command compatibility.
You got /4 concepts.