Challenge - 5 Problems
Package Manager Pro
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of updating package lists with apt?
You run the command
sudo apt update on a Debian-based system. What is the expected output shown?Linux CLI
sudo apt update
Attempts:
2 left
💡 Hint
Think about what 'apt update' does before installing or upgrading.
✗ Incorrect
The 'apt update' command refreshes the package lists from repositories but does not install or remove packages.
💻 Command Output
intermediate1:30remaining
What happens when you run 'yum remove' on a package?
On a Red Hat-based system, you run
sudo yum remove httpd. What is the expected result?Linux CLI
sudo yum remove httpd
Attempts:
2 left
💡 Hint
Removing a package deletes it from the system.
✗ Incorrect
'yum remove' deletes the specified package and any dependencies that are no longer required.
📝 Syntax
advanced1:30remaining
Which command correctly installs a package with dnf?
Choose the correct command to install the package 'nano' using dnf on Fedora.
Attempts:
2 left
💡 Hint
The command to add a package is 'install'.
✗ Incorrect
'dnf install' is the correct syntax to add a package. 'get' is invalid, 'update' upgrades, 'remove' deletes.
💻 Command Output
advanced1:30remaining
What message is shown when removing a non-existent package with apt?
You run
sudo apt remove nonexistent-package. What is the expected output?Linux CLI
sudo apt remove nonexistent-package
Attempts:
2 left
💡 Hint
apt remove checks if the package is installed on the system.
✗ Incorrect
apt reports 'Package 'nonexistent-package' is not installed, so not removed' when attempting to remove a package that is not installed.
🚀 Application
expert2:00remaining
How many packages are upgraded after running 'sudo apt upgrade'?
After running
sudo apt update and then sudo apt upgrade, the output shows 5 packages will be upgraded. What is the number of packages actually upgraded after the upgrade completes successfully?Linux CLI
sudo apt update && sudo apt upgrade -y
Attempts:
2 left
💡 Hint
The upgrade command installs all listed upgrades unless interrupted.
✗ Incorrect
If 5 packages are listed to upgrade and the upgrade runs with automatic yes, all 5 are upgraded.