Courseiva
Linux Installation and Package ManagementeasyMultiple ChoiceObjective-mapped

LPIC-1 Linux Installation and Package Management Practice Question

An administrator added a new APT repository to sources.list. Which command must be run to make the system aware of the packages from that repository?

⚠ Common exam trap

A common mix-up: candidates confuse 'update' (refreshing package lists) with 'upgrade' (installing newer versions of installed packages), leading them to choose 'apt upgrade' or 'apt-get upgrade' thinking it will also fetch new repository data.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

apt update

After adding a new APT repository to sources.list, you must run 'apt update' (or 'apt-get update') to refresh the local package index from all configured repositories. This command downloads the latest package lists from the repository's Release and Packages files, making the system aware of available packages and their versions. Without this step, APT will not know about the new repository's packages, and subsequent install or upgrade commands will fail to find them.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • apt-get upgrade

    Why it's wrong here

    Same as apt upgrade.

  • apt upgrade

    Why it's wrong here

    apt upgrade upgrades packages but does not update the package list.

  • apt-cache search

    Why it's wrong here

    apt-cache search queries the cache but does not update it.

  • apt update

    Why this is correct

    apt update synchronizes the package index files from sources.

About these practice questions

One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.