Bird
0
0

Which of the following is the correct syntax to update the package list on a Debian-based system?

easy📝 Syntax Q12 of 15
Linux CLI - Package Management
Which of the following is the correct syntax to update the package list on a Debian-based system?
A<code>apt update</code>
B<code>apt install update</code>
C<code>apt upgrade</code>
D<code>apt remove update</code>
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to refresh package lists

    apt update downloads the latest package information from repositories.
  2. Step 2: Understand other commands

    apt upgrade installs available updates, not refreshes lists; others are invalid.
  3. Final Answer:

    apt update -> Option A
  4. Quick Check:

    Refresh package list = apt update [OK]
Quick Trick: Use 'apt update' to refresh package info before upgrades [OK]
Common Mistakes:
  • Using 'apt upgrade' to update package lists
  • Adding package names to 'apt update'
  • Confusing 'apt remove' with update commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes