LPIC-1 · domain
Linux Installation and Package Management
Practise Linux Professional Institute Certification Level 1 LPIC-1 Linux Installation and Package Management practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.
Focused practice
Practice Linux Installation and Package Management questions
Scored sessions drawing only from this domain — pick a length below.
Start 20-question practice test →What this domain covers
What to know about Linux Installation and Package Management
Linux Installation and Package Management questions test whether you can apply the concept in context, not just recognise a definition.
How the topic appears in realistic exam-style scenarios.
Which detail in the question changes the correct answer.
How to eliminate plausible but wrong options.
How to connect the question back to the wider exam objective.
Watch out for
Common Linux Installation and Package Management exam traps
- ▸Answering from memory before reading the full scenario.
- ▸Missing a constraint such as cost, availability, security, scope or command context.
- ▸Choosing a broad answer when the question asks for the most specific fix.
- ▸Ignoring why the wrong options are tempting.
Question index
All Linux Installation and Package Management questions (82)
Click any question to see the full explanation, or start a practice session above.
Refer to the exhibit. After modifying /etc/default/grub to enable serial console output, which command must be run to apply the changes to the GRUB configuration?
Hard2A 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?
Hard3You 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?
Hard4A technician needs to add the official Debian repository for the 'buster' release. Which line should be added to /etc/apt/sources.list?
Easy5A system administrator needs to find out which package installed the file /usr/bin/foo on a Red Hat system. Which command should be used?
Medium6A system administrator needs to install a local Debian package file named 'myapp.deb'. Which command should be used?
Easy7A 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?
Easy8You are responsible for maintaining a legacy Red Hat Enterprise Linux 6 server that hosts an internal web application. The application was compiled years ago and relies on an old version of OpenSSL (0.9.8). Due to a security audit, you must update OpenSSL to 1.0.1 but the application fails to run with the new version. The vendor no longer supports the application. You must keep the system secure while keeping the application operational. You have access to the application source code but cannot modify it. What is the best solution?
Hard9An RPM-based system has a package 'example-1.0' installed, but a newer version 'example-2.0' is available in a repository. Which command will upgrade the package?
Hard10An RPM-based system reports a file conflict during package installation. Which option to the rpm command will allow the installation to overwrite files from another package?
Hard11You are a Linux consultant hired by a university IT department. They have a custom scientific application that must be compiled from source on a cluster of identical workstations running Ubuntu 20.04. The compilation process requires a specific version of a library (libfoo 1.2) that is not available in the standard repositories, but an older version (libfoo 1.0) is available. You must provide instructions for installing libfoo 1.2 without breaking the system. The workstations have no internet access to external repositories; they can only access an internal repository. You have the source code and a .deb package for libfoo 1.2 built previously. Which approach would you recommend?
Medium12Which two commands can be used to list all packages that have the string 'kernel' in their name on a Debian system? (Choose two.)
Easy13A Debian system has some partially installed packages due to a failed installation. Which TWO commands can help resolve the broken dependencies? (Choose exactly two.)
Medium14The exhibit shows output from an RPM query on a RHEL 8 system. The installation time is shown as a Unix timestamp. Which command would display the installation date of the openssh-server package in a human-readable format?
Hard15A technician needs to remove a package named 'apache2' along with its configuration files from a Debian system. Which command should be used?
Easy16Match each SELinux context component to its purpose.
Medium17Which three options are valid ways to install a package 'curl' on a RHEL 8 system? (Choose three.)
Medium18An 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?
Hard19Order the steps to configure a Linux system to use a proxy server for HTTP.
Medium20Which TWO commands are used to manage Debian packages? (Choose two.)
Easy21A DevOps engineer is setting up an automated build pipeline for a Python application on a Debian system. The application must be packaged into a .deb for deployment. The engineer writes a Makefile that creates the package but the final 'dpkg -i' step fails due to unmet dependencies: the application requires python3-requests >= 2.0, but the repositories provide 1.0. The team has a local mirror with custom packages including python3-requests 2.0. The mirror is correctly listed in /etc/apt/sources.list. The engineer runs 'apt-get update' before building, but the dependency resolution still fails. What is the most likely cause?
Hard22Refer to the exhibit. The system administrator wants to determine which package provides the file /etc/passwd. Based on the output, which command would be most appropriate to find the package?
Medium23You are a junior administrator for a company that uses a standard disk image for all Linux servers. The image is based on CentOS 7. You need to ensure that new servers automatically install all available security updates during the first boot. You plan to run a command in a startup script. Which command should you use?
Easy24Which command lists all installed packages on a Debian-based system by querying the dpkg database?
Easy25A systems administrator downloads a .deb package file but it fails to install due to unmet dependencies. Which command sequence should be used to resolve the dependencies and complete the installation?
Easy26An 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?
Easy27Arrange the steps to schedule a cron job that runs a script every day at 2 AM.
Medium28You 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?
Easy29Which THREE locations are used to configure package repositories on a typical Linux system? (Choose three.)
Hard30A system administrator is troubleshooting a package dependency issue on a Debian system. Which three commands can be used to display dependency information for a package? (Choose three.)
Hard31Which THREE are valid fields in a GRUB 2 configuration file (grub.cfg) generated by update-grub? (Choose three.)
Hard32Which TWO of the following commands can be used to list all installed packages on a Debian-based system?
Medium33Based on the exhibit, what does the 'rc' status for the package 'apache2-bin' indicate?
Medium34During system startup, GRUB 2 displays a prompt. Which command should be typed at the GRUB prompt to boot the currently selected entry normally?
Medium35You 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?
Easy36Which TWO commands are used to install packages on a Debian-based system? (Choose two.)
Easy37A Linux administrator is troubleshooting a package dependency issue. When attempting to install package 'foo', the package manager reports a missing dependency 'libbar.so.2'. Which of the following is the most appropriate next step?
Medium38You 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?
Medium39A system administrator is responsible for a production Debian 10 (buster) server that hosts a critical web application. The application requires the package 'libssl1.1' version 1.1.1 or higher, but the official Debian 10 repository only provides version 1.1.0. The administrator has already attempted to install the newer version from Debian 11 (bullseye) sources, but this caused dependency conflicts with the existing libc6 version. The server cannot be upgraded to Debian 11 due to application compatibility. The administrator needs to resolve this situation without breaking the existing system or introducing unofficial packages. Which of the following is the most appropriate course of action?
Hard40A Linux administrator is managing a server that uses RPM-based package management. They need to find which installed package provides the '/etc/ssh/sshd_config' file. Which command should they use?
Medium41Which file defines the APT software repositories used by a Debian-based system?
Easy42Which THREE package management tools are native to Debian-based Linux distributions? (Choose exactly three.)
Easy43A Red Hat system administrator suspects that the files belonging to the 'openssh-server' package have been modified since installation. Which command verifies the integrity of the installed package files?
Medium44A Linux administrator wants to update the local package index from all configured repositories on an Ubuntu system. Which command accomplishes this?
Easy45A 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?
Medium46A system administrator needs to install the latest version of a package named 'webapp' from a third-party repository that has been added to the system. Which command should be used to update the package list and install the package in one step?
Easy47When troubleshooting a problem with a Debian package installation, an administrator wants to see which version of a package would be installed from the configured repositories. Which command displays the candidate version?
Hard48A Yellowdog Updater Modified (YUM) transaction that included several package installations and upgrades completed successfully, but a recent change caused a service to break. The administrator wants to revert the entire transaction using its transaction ID. Which command should be used?
Medium49Based on the dpkg -l output in the exhibit, what does the 'rc' status indicate for the apache2 package?
Medium50A system has multiple APT repositories configured. The administrator needs to ensure that for a specific package, the version from a particular repository is always preferred over others, regardless of version number. Which configuration would achieve this?
Hard51An administrator needs to downgrade a package from version 2.0 to version 1.9. Which apt-get command can be used to perform this action?
Medium52An administrator needs to install apache2 version 2.4.41-4ubuntu3.4 from the security repository to ensure the latest security patches. Based on the exhibit, which command should they use?
Medium53A technician is tasked with installing a package from a third-party repository on a CentOS 7 system. What is the correct first step to add the repository?
Medium54Refer to the exhibit. Based on the apt-cache showpkg output, which version of vim would be installed if the administrator runs 'apt-get install vim' without specifying a version?
Easy55On a Fedora system, which command is used to update all installed packages to their latest versions?
Easy56A developer downloads the source code for a kernel module and attempts to compile it using `make`. The compilation fails with an error indicating that the kernel header files are missing. Which package should be installed to provide the necessary headers on a Debian system?
Hard57Refer to the exhibit. Based on the dpkg output, what is the status of the 'ftp' package?
Easy58A system administrator wants to compile and install a program from source. After running './configure --prefix=/opt/myapp', the configure script fails with an error about missing 'libssl-dev'. What should the administrator do to resolve this issue?
Medium59An administrator wants to remove a package 'apache2' but keep its configuration files on the system. Which command should be used?
Easy60Which THREE of the following are valid methods to install a package from a local .deb file?
Hard61An openSUSE administrator needs to add a new repository from a URL and refresh the package cache. Which command sequence accomplishes this?
Hard62Which TWO directories are commonly used to store source code before compiling? (Choose two.)
Medium63An administrator needs to downgrade a package 'apache2' to a specific older version using APT. Which TWO commands can achieve this? (Choose exactly two.)
Hard64After a failed package upgrade, a Debian system shows 'unmet dependencies' when trying to install any new software. What is the most appropriate command to fix this condition?
Hard65Which TWO characteristics describe the difference between 'apt-get' and 'aptitude'? (Choose two.)
Medium66Match each Linux directory to its standard purpose.
Medium67A system administrator needs to install a new kernel on a Debian-based system. Which TWO commands can be used to achieve this? (Choose TWO.)
Medium68A sysadmin wants to prevent an APT package from being upgraded automatically but still allow it to be upgraded manually if needed. Which configuration method best achieves this?
Hard69A dependency analysis shows that removing package 'libfoo' will also remove 'appA' and 'appB' because they depend on libfoo. The administrator wants to remove libfoo but keep appA and appB. What is the best approach?
Hard70Which TWO of the following are Debian package management tools?
Easy71Based on the exhibit, the 'custom' repository shows 0 packages. What is the most likely cause?
Hard72A user downloaded a Debian package file named 'software.deb'. Which command should be used to install it?
Easy73Refer to the exhibit. An administrator is trying to install Google Chrome but receives a GPG error. Which command should be run to add the repository's GPG key?
Hard74A 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?
Hard75During boot, a server loads the wrong kernel. Which file should the administrator modify to change the default kernel in a standard GRUB 2 configuration?
Medium76Refer to the exhibit. An administrator wants to verify the integrity of the kernel-core package by checking its signature. Which command is used?
Easy77A user compiling software from source successfully runs './configure' and 'make', but the resulting binaries are not in the PATH. Which command should be run to install them system-wide?
Medium78An administrator wants to prevent a specific package from being upgraded during routine system updates. Which command marks the package as held back?
Medium79Refer 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?
Medium80A 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?
Medium81Refer 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?
Hard82An administrator suspects that a critical system file has been modified after installation. Which command can be used to verify the integrity of all installed RPM packages on a RHEL system?
HardOther domains
All LPIC-1 exam domains
Frequently asked questions
- What does the Linux Installation and Package Management domain cover on the LPIC-1 exam?
- Linux Installation and Package Management questions test whether you can apply the concept in context, not just recognise a definition.
- How many questions are in this domain?
- This page lists all 82 Linux Installation and Package Management questions in the LPIC-1 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only Linux Installation and Package Management questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.