Challenge - 5 Problems
Yum/DNF Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of this command?
You run the command
yum list installed httpd on a RHEL system. What will this command output?Linux CLI
yum list installed httpdAttempts:
2 left
💡 Hint
Think about what 'list installed' means in yum.
✗ Incorrect
The command 'yum list installed httpd' shows if the httpd package is installed and its version. It does not install, remove, or update packages.
💻 Command Output
intermediate1:30remaining
What happens when you run this command?
What is the result of running
dnf clean all on a CentOS system?Linux CLI
dnf clean all
Attempts:
2 left
💡 Hint
Think about what 'clean' means in package managers.
✗ Incorrect
'dnf clean all' deletes all cached data including metadata and packages, which helps free disk space and forces fresh downloads next time.
📝 Syntax
advanced2:00remaining
Which command correctly installs a package and its dependencies?
You want to install the package 'vim' along with all its dependencies on a RHEL system. Which command is correct?
Attempts:
2 left
💡 Hint
The command should add a package, not remove or update it.
✗ Incorrect
'yum install vim' installs the vim package and all required dependencies. 'yum get' is invalid, 'dnf remove' deletes packages, and 'dnf update' upgrades existing packages.
🚀 Application
advanced2:00remaining
How to check which repository provides a package?
You want to find out which enabled repository provides the package 'curl' on a CentOS system. Which command will show this information?
Attempts:
2 left
💡 Hint
Look for a command that queries repositories for package info.
✗ Incorrect
'dnf repoquery --whatprovides curl' lists which repository supplies the curl package. Other commands list installed packages, clean cache, or remove packages.
🔧 Debug
expert2:30remaining
Why does this command fail with 'No match for argument' error?
You run
yum install httpd-tools-2.4.6 but get the error 'No match for argument: httpd-tools-2.4.6'. What is the most likely reason?Linux CLI
yum install httpd-tools-2.4.6Attempts:
2 left
💡 Hint
Think about how yum expects package names.
✗ Incorrect
Yum expects package names without version numbers. Including the version causes no match error. To install a specific version, a different syntax is needed.