Bird
0
0

What will happen if you run apt install --reinstall nano on your system?

medium📝 Command Output Q5 of 15
Linux CLI - Package Management
What will happen if you run apt install --reinstall nano on your system?
AIt removes nano from the system
BIt reinstalls nano even if already installed
CIt installs nano only if not already installed
DIt upgrades nano to the latest version
Step-by-Step Solution
Solution:
  1. Step 1: Understand the --reinstall option

    This option forces apt to reinstall the specified package even if it is already installed.
  2. Step 2: Differentiate from install and upgrade

    Normal apt install skips reinstalling if package is present; upgrade updates to newer versions.
  3. Final Answer:

    It reinstalls nano even if already installed -> Option B
  4. Quick Check:

    --reinstall forces reinstall = It reinstalls nano even if already installed [OK]
Quick Trick: Use --reinstall to force package reinstall even if present [OK]
Common Mistakes:
  • Assuming it only installs if missing
  • Confusing reinstall with upgrade
  • Thinking it removes the package

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes