LPIC-1 Linux Installation and Package Management Practice Question
You work for a hosting company that manages hundreds of CentOS 7 servers. Each server runs a standard set of monitoring tools. Your team needs to deploy a custom monitoring agent that is only available as source code (tarball). The agent must be installed on all servers from a central repository. You have set up an internal YUM repository with the compiled RPMs of the agent. On a test server, you run 'yum install custom-agent', but it fails with a message that the package is not found. You verify the package is present in the repository directory and that the createrepo command has been run. Which step is most likely missing?
⚠ Common exam trap
Many candidates assume running createrepo is sufficient for yum to find packages, overlooking that yum must be able to access the repository metadata over a network protocol, not just have the files present locally.
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
✓
The repository is not being served via HTTP or FTP; it is only available as a local file path.
The scenario states the repository is set up as an internal YUM repository with compiled RPMs, but yum requires the repository to be accessible via HTTP, FTP, or a local file:// path. If the repository is only available as a local file path on the server and not served via a web server (e.g., Apache or Nginx) or FTP, yum will fail to find the package unless the .repo file explicitly uses a file:// URL. Since the question implies a central repository accessed by multiple servers, a local file path without proper serving would not be reachable by yum over the network.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The GPG key for the repository is not imported.
Why it's wrong here
GPG key issues usually give a specific error about missing key, not 'package not found'.
- ✗
The package architecture does not match (e.g., x86_64 package on i386).
Why it's wrong here
Architecture mismatch gives a different error.
- ✗
The .repo file references the wrong baseurl hostname.
Why it's wrong here
The hostname might be wrong, but the more fundamental issue is that the repository is probably not served via a web server.
- ✓
The repository is not being served via HTTP or FTP; it is only available as a local file path.
Why this is correct
YUM expects an HTTP/HTTPS/FTP URL unless using file:/// but baseurl often omitted.
Go deeper
Related to this question
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 →
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.