Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to install a package named 'httpd' using dnf.
Linux CLI
sudo dnf [1] httpd Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' instead of 'install' will uninstall packages.
Using 'update' tries to update packages, not install new ones.
✗ Incorrect
The 'install' option tells dnf to install the specified package.
2fill in blank
mediumComplete the command to list all installed packages using yum.
Linux CLI
yum [1] installed Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'search' will look for packages but not list installed ones.
Using 'info' shows details about a package, not a list.
✗ Incorrect
The 'list' option with 'installed' shows all installed packages.
3fill in blank
hardFix the error in the command to update all packages using dnf.
Linux CLI
sudo dnf [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' will try to add new packages, not update existing ones.
Using 'remove' deletes packages instead of updating.
✗ Incorrect
The 'upgrade' option updates all installed packages to the latest version.
4fill in blank
hardFill both blanks to search for a package named 'vim' using yum.
Linux CLI
yum [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'search' will try to install the package.
Swapping the order of words will cause errors.
✗ Incorrect
The 'search' command followed by the package name 'vim' looks for that package.
5fill in blank
hardFill all three blanks to remove the package 'nano' using dnf without asking for confirmation.
Linux CLI
sudo dnf [1] nano [2] -y [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'remove' will add the package.
Forgetting '-y' will ask for confirmation.
Not using '--quiet' will show more output.
✗ Incorrect
The 'remove' command deletes the package, '--assumeyes' skips confirmation, and '--quiet' reduces output.