0
0
Linux CLIscripting~5 mins

yum/dnf (RHEL/CentOS) basics in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Adnf update nano
Bdnf search nano
Cdnf remove nano
Ddnf install nano
What does the command 'yum clean all' do?
ARemoves all installed packages
BUpdates all packages
CClears cached package data to free disk space
DSearches for packages
Which command lists all available packages using yum?
Ayum list available
Byum list installed
Cyum search all
Dyum info all
If you want to remove a package called 'httpd' using dnf, which command do you use?
Adnf uninstall httpd
Bdnf remove httpd
Cdnf delete httpd
Ddnf erase httpd
Which package manager is the default on newer RHEL 8+ systems?
Adnf
Bapt
Czypper
Dyum
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.