Bird
0
0

Which of the following is the correct syntax to update the package list using apt?

easy📝 Syntax Q3 of 15
Linux CLI - Package Management
Which of the following is the correct syntax to update the package list using apt?
Aapt refresh
Bapt upgrade
Capt update
Dapt install update
Step-by-Step Solution
Solution:
  1. Step 1: Recall the command to refresh package lists

    The command apt update downloads the latest package information from repositories.
  2. Step 2: Check other options for correctness

    apt upgrade upgrades packages, apt install update is invalid syntax, and apt refresh is not a valid apt command.
  3. Final Answer:

    apt update -> Option C
  4. Quick Check:

    Update package list = apt update [OK]
Quick Trick: Use 'apt update' to refresh package lists before installing [OK]
Common Mistakes:
  • Using 'apt upgrade' to update package lists
  • Typing invalid commands like 'apt refresh'
  • Confusing install with update

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes