0
0
Linux CLIscripting~10 mins

yum/dnf (RHEL/CentOS) basics in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
Aupdate
Bremove
Cinstall
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' instead of 'install' will uninstall packages.
Using 'update' tries to update packages, not install new ones.
2fill in blank
medium

Complete the command to list all installed packages using yum.

Linux CLI
yum [1] installed
Drag options to blanks, or click blank then click option'
Alist
Bcheck
Cinfo
Dsearch
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.
3fill in blank
hard

Fix 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'
Aupgrade
Bremove
Cinstall
Dlist
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.
4fill in blank
hard

Fill 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'
Asearch
Binstall
Cvim
Dremove
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.
5fill in blank
hard

Fill 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'
Aremove
B--assumeyes
C--quiet
Dinstall
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.