Courseiva

LPIC-1 · topic practice

Linux Installation and Package Management practice questions

This domain covers installing Linux distributions, managing disks and partitions, and package management on Debian-based and RPM-based systems. LPIC-1 tests dpkg, apt, rpm, dnf, yum, and zypper, plus repository configuration, package queries, dependency resolution, and holding or pinning package versions.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Linux Installation and Package Management

What the exam tests

What to know about Linux Installation and Package Management

Install, query, and remove packages with the correct low-level and high-level tool for each distribution family. The most important thing is knowing when to use dpkg or rpm versus apt or dnf, and how repository configuration controls which package version is installed.

Debian package management with dpkg, apt-get, apt-cache, and apt configuration files

RPM package management with rpm, dnf, yum, and zypper on RHEL and SUSE

Configuring APT and DNF repositories, including priorities, pins, and version holds

Disk partitioning, filesystems, and installing a boot manager such as GRUB

Watch out for

Common Linux Installation and Package Management exam traps

  • ▸Confusing apt-get upgrade with dist-upgrade or full-upgrade, which also add and remove packages to satisfy dependencies
  • ▸Using rpm -i for a package with unmet dependencies instead of dnf install, which resolves them automatically
  • ▸Editing sources.list incorrectly or forgetting apt update, so candidate versions and repositories are stale

Practice set

Linux Installation and Package Management questions

20 questions · select your answer, then reveal the explanation

A company maintains a private Debian repository for internal packages. A new package 'internal-tool' version 2.0 has been added to the repository, but when users run 'apt-get update && apt-get install internal-tool', the old version 1.0 is still being offered. What is the most likely cause?

Which TWO of the following commands can be used to list all installed packages on a Debian-based system?

Which THREE of the following are valid methods to install a package from a local .deb file?

Based on the exhibit, what does the 'rc' status for the package 'apache2-bin' indicate?

Exhibit

Refer to the exhibit.

```
$ dpkg -l | grep apache
ii  apache2         2.4.41-1       amd64        Apache HTTP Server
rc  apache2-bin     2.4.41-1       amd64        Apache HTTP Server (binary files)
```

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?

Refer to the exhibit. A system administrator checks the integrity of the passwd package on a CentOS 7 system using rpm -V. Based on the output, what is the most likely cause of the 'missing' line?

Exhibit

Refer to the exhibit.
```
$ rpm -qf /usr/bin/passwd
passwd-0.79-5.el7.x86_64
$ rpm -V passwd
S.5....T.  c /etc/pam.d/passwd
missing   c /etc/security/passwd
```

You are a system administrator for a small company running a web server on Ubuntu 20.04 LTS. The web server application was installed using apt from the official repositories. Recently, a critical security patch was released for the web server package. You run 'apt update' and 'apt upgrade' but the package is not upgraded. You check the package status with 'apt-cache policy <package>' and see that the installed version is 2.4.41-4ubuntu3.6, and the candidate version is the same. The latest patched version in the repository is 2.4.41-4ubuntu3.7. You verify that the system has internet connectivity and that the repository URLs in /etc/apt/sources.list are correct. What is the most likely reason the upgrade is not being offered?

Match each SELinux context component to its purpose.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

SELinux user identity

Role-based access control component

Type enforcement (most common)

Multi-Level Security sensitivity level

Combined sensitivity and category set

Which file defines the APT software repositories used by a Debian-based system?

A system administrator installs a new RPM package, but it fails due to a missing library dependency. Which command can best identify the specific dependency that is missing?

During system startup, GRUB 2 displays a prompt. Which command should be typed at the GRUB prompt to boot the currently selected entry normally?

A Debian system has a broken package that was partially installed. Which command will attempt to fix dependencies and configure all unpacked but not configured packages?

Refer to the exhibit. A new installation requires the root filesystem to be placed on LVM. Based on the current disk layout, which partition is most suitable for use as an LVM physical volume?

Exhibit

Refer to the exhibit.

$ sudo fdisk -l /dev/sda
Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors
Device       Boot   Start      End  Sectors  Size Id Type
/dev/sda1    *       2048   999423   997376  487M 83 Linux
/dev/sda2         999424 209715199 208715776 99.5G 8e Linux LVM

An administrator wants to prevent a specific package from being upgraded during routine system updates. Which command marks the package as held back?

A system administrator needs to remove a package called 'apache2' from a Red Hat Enterprise Linux system while leaving its configuration files intact. Which command accomplishes this?

An administrator needs to downgrade a package 'apache2' to a specific older version using APT. Which TWO commands can achieve this? (Choose exactly two.)

A system administrator needs to install a package 'foo' which depends on library 'libbar.so.2' that is not currently installed. The administrator runs `apt-get install foo` and receives an error about unmet dependencies. Which of the following is the most appropriate next step?

An administrator wants to remove a package 'apache2' but keep its configuration files on the system. Which command should be used?

Which two commands can be used to list all packages that have the string 'kernel' in their name on a Debian system? (Choose two.)

You are the system administrator of a small office network. The company has a Debian-based server that runs a critical database application. The database package was installed from the official Debian repository. After an ‘apt upgrade’, the database service fails to start. The error log indicates a library version mismatch. You suspect the upgrade updated a shared library that the database depends on, but the database binary was not updated because the repository no longer supports it. The vendor provides a custom .deb package for the database on their website. You need to restore the database functionality as quickly as possible, but you also want to avoid breaking other packages that may depend on the newer library. What should you do?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Linux Installation and Package Management sessions

Start a Linux Installation and Package Management only practice session

Every question in these sessions is drawn from the Linux Installation and Package Management domain — nothing else.

Related practice questions

Related LPIC-1 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the LPIC-1 exam test about Linux Installation and Package Management?
Install, query, and remove packages with the correct low-level and high-level tool for each distribution family. The most important thing is knowing when to use dpkg or rpm versus apt or dnf, and how repository configuration controls which package version is installed.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Linux Installation and Package Management questions in a focused session?
Yes — the session launcher on this page draws every question from the Linux Installation and Package Management domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other LPIC-1 topics?
Use the topic links above to move to related areas, or go back to the LPIC-1 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the LPIC-1 exam covers. They are not copied from any real exam or dump site.