0
0
Linux CLIscripting~10 mins

Installing, updating, removing packages 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 the package named 'curl' using apt.

Linux CLI
sudo apt [1] curl
Drag options to blanks, or click blank then click option'
Aupgrade
Bremove
Cupdate
Dinstall
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' instead of 'install' will uninstall packages.
Using 'update' only refreshes package lists, not install packages.
2fill in blank
medium

Complete the command to update the package list on a Debian-based system.

Linux CLI
sudo apt [1]
Drag options to blanks, or click blank then click option'
Aupgrade
Binstall
Cupdate
Dremove
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'upgrade' will try to install new versions, not update the list.
Using 'install' or 'remove' changes packages, not update the list.
3fill in blank
hard

Fix the error in the command to remove the package 'nano' using apt.

Linux CLI
sudo apt [1] nano
Drag options to blanks, or click blank then click option'
Aremove
Binstall
Cupdate
Dupgrade
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' will add the package instead of removing it.
Using 'update' or 'upgrade' does not remove packages.
4fill in blank
hard

Fill both blanks to upgrade all packages after updating the package list.

Linux CLI
sudo apt [1] && sudo apt [2]
Drag options to blanks, or click blank then click option'
Aupdate
Bupgrade
Cinstall
Dremove
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the commands will cause errors or no updates.
Using 'install' or 'remove' in either blank is incorrect here.
5fill in blank
hard

Fill all three blanks to install 'git', update the package list, and then remove 'vim'.

Linux CLI
sudo apt [1] git && sudo apt [2] && sudo apt [3] vim
Drag options to blanks, or click blank then click option'
Ainstall
Bupdate
Cremove
Dupgrade
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up 'upgrade' with 'update' or 'remove' causes wrong actions.
Using 'install' to remove packages is incorrect.