Linux CLI - Package Management
You want to write a script that updates the package list, upgrades all packages, and then removes a package named
oldapp. Which sequence of commands is correct?oldapp. Which sequence of commands is correct?apt update to get latest info, then upgrade installed packages with apt upgrade -y, and finally remove unwanted packages.apt update apt upgrade -y apt remove oldapp -yfollows the correct order: update, upgrade, then remove. Others have wrong sequences that may cause errors or outdated upgrades.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions