Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to update the package list on a Debian/Ubuntu system.
Linux CLI
sudo apt [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'upgrade' instead of 'update' which upgrades packages instead of refreshing the list.
Using 'install' which installs new packages, not update the list.
✗ Incorrect
The 'apt update' command refreshes the package list from repositories.
2fill in blank
mediumComplete the command to install the package named 'curl'.
Linux CLI
sudo apt [1] curl Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' which deletes packages instead of installing.
Using 'update' which refreshes package lists but does not install.
✗ Incorrect
The 'apt install' command installs new packages like 'curl'.
3fill in blank
hardFix the command to upgrade all installed packages to the newest version.
Linux CLI
sudo apt [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' which only refreshes package lists but does not upgrade packages.
Using 'install' which installs new packages, not upgrade existing ones.
✗ Incorrect
The 'apt upgrade' command upgrades all installed packages to their latest versions.
4fill in blank
hardFill both blanks to remove the package 'nano' and clean up unused packages.
Linux CLI
sudo apt [1] nano && sudo apt [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'remove' to delete a package.
Using 'update' instead of 'autoremove' to clean unused packages.
✗ Incorrect
First, 'apt remove nano' deletes the package. Then, 'apt autoremove' cleans unused dependencies.
5fill in blank
hardFill all three blanks to update package lists, upgrade packages, and clean cache.
Linux CLI
sudo apt [1] && sudo apt [2] && sudo apt [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'autoremove' instead of 'autoclean' to clean cache.
Skipping 'update' before 'upgrade' which can cause outdated upgrades.
✗ Incorrect
The sequence updates lists, upgrades packages, then cleans old package files.