Question 87 of 522
Linux Installation and Package ManagementhardMultiple ChoiceObjective-mapped

Quick Answer

The answer is that clients have cached metadata and need to run 'yum clean all' or wait for cache expiration. This is because YUM clients store a local copy of repository metadata to speed up operations, and even after you run createrepo to regenerate the metadata on the server, each client’s cached copy remains stale until it is explicitly refreshed or expires. On the LPIC-1 exam, this scenario tests your understanding of the YUM metadata lifecycle and the importance of cache management in custom repositories—a common trap is assuming that regenerating metadata on the server instantly propagates to clients. Remember that YUM prioritizes performance over freshness by default, so the client’s local cache acts as a barrier. A useful memory tip is “server creates, client caches—clean to see the changes.”

LPIC-1 Linux Installation and Package Management Practice Question

This LPIC-1 practice question tests your understanding of linux installation and package management. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

An organization uses a custom YUM repository. After adding a new RPM package to the repository, clients running 'yum update' do not see the new package. The repository metadata was regenerated using 'createrepo'. What is the most likely reason the clients are not seeing the update?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

Question 1hardmultiple choice
Full question →

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

Clients have cached metadata and need to run 'yum clean all' or wait for cache expiration

Option A is correct because YUM clients cache repository metadata locally to improve performance. When a new package is added to a repository and 'createrepo' regenerates the metadata, clients will not see the update until they refresh their cached metadata. Running 'yum clean all' removes the cached metadata and forces a fresh download, or the cache will expire based on the 'metadata_expire' setting in the repo configuration (default is 6 hours).

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Clients have cached metadata and need to run 'yum clean all' or wait for cache expiration

    Why this is correct

    Yum caches repomd.xml; a fresh 'yum makecache' is needed.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The 'gpgcheck=1' option in the repo file prevents metadata download

    Why it's wrong here

    gpgcheck affects package installation, not metadata download.

  • The repository metadata was not signed with a GPG key

    Why it's wrong here

    Signing is not required for metadata refresh.

  • The RPM package version number is lower than the currently installed version

    Why it's wrong here

    If lower, it wouldn't be offered, but the question implies it's a new package.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may think GPG signing or version numbers are the cause, but the real issue is that YUM's metadata caching prevents clients from immediately seeing repository changes without a cache refresh.

Detailed technical explanation

How to think about this question

YUM uses a local SQLite or XML metadata cache stored in /var/cache/yum. The 'createrepo' command generates repomd.xml and primary.xml.gz files that list all packages. Clients check the 'timestamp' or 'checksum' in repomd.xml to decide if their cache is stale. The 'metadata_expire' directive in the .repo file controls how long the cache is considered valid; setting it to 'never' would require manual 'yum clean all' to see updates.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the LPIC-1 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related LPIC-1 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free LPIC-1 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this LPIC-1 question test?

Linux Installation and Package Management — This question tests Linux Installation and Package Management — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Clients have cached metadata and need to run 'yum clean all' or wait for cache expiration — Option A is correct because YUM clients cache repository metadata locally to improve performance. When a new package is added to a repository and 'createrepo' regenerates the metadata, clients will not see the update until they refresh their cached metadata. Running 'yum clean all' removes the cached metadata and forces a fresh download, or the cache will expire based on the 'metadata_expire' setting in the repo configuration (default is 6 hours).

What should I do if I get this LPIC-1 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on LPIC-1

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You are a Linux administrator for a company that uses a custom RPM-based distribution. The development team has built a new version of the internal tool 'monitor-app' (version 2.0) and placed the RPM package in a local YUM repository located at http://internal.repo/monitor-app-2.0.el7.x86_64.rpm. The repository metadata has been updated using 'createrepo'. On a test server running CentOS 7, you run 'yum update monitor-app' but the system reports 'No packages marked for update'. The currently installed version is 1.0. You verify that the repository is enabled and accessible via 'yum repolist'. What is the most likely cause and the correct course of action?

hard
  • A.Download the RPM and install it locally with 'rpm -Uvh monitor-app-2.0.el7.x86_64.rpm'
  • B.Run 'yum list available | grep monitor' to see if the package is listed with a different name, then install it with the exact name
  • C.Check the version number in the repository using 'yum info monitor-app' and compare with installed version
  • D.Run 'yum clean all' and then 'yum update monitor-app' again

Why B: Option B is correct because the most likely cause is that the package name in the repository differs from the installed package name (e.g., 'monitor-app' vs. 'monitor-app-2.0'). Running 'yum list available | grep monitor' will reveal the exact package name in the repository, allowing you to install it with the correct name. This is a common scenario when package naming conventions change between versions or when the repository uses a different naming scheme than the installed package.

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.