LPIC-1 · domain
Linux Installation and Package Management
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.
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
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
Question index
All Linux Installation and Package Management questions (69)
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 technician needs to add the official Debian repository for the 'buster' release. Which line should be added to /etc/apt/sources.list?
Easy3A system administrator needs to find out which package installed the file /usr/bin/foo on a Red Hat system. Which command should be used?
Medium4A system administrator needs to install a local Debian package file named 'myapp.deb'. Which command should be used?
Easy5An 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?
Hard6An 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?
Hard7A Debian system has some partially installed packages due to a failed installation. Which TWO commands can help resolve the broken dependencies? (Choose exactly two.)
Medium8The 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?
Hard9A technician needs to remove a package named 'apache2' along with its configuration files from a Debian system. Which command should be used?
Easy10Which three options are valid ways to install a package 'curl' on a RHEL 8 system? (Choose three.)
Medium11An 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?
Hard12An administrator needs to install a Debian package file named custom-app.deb that was downloaded from a vendor website. The package has dependencies that are available in the configured repositories. Which command will install the package along with its dependencies?
Medium13Order the steps to configure a Linux system to use a proxy server for HTTP.
Medium14Which TWO commands are used to manage Debian packages? (Choose two.)
Easy15A Linux administrator is preparing a new server and needs to install a package group called 'Development Tools' on a CentOS 8 system. The administrator wants to see which packages are included in this group before installing. Which command should be used?
Medium16A Debian-based server has a custom application installed from a local .deb file that was built in-house. The administrator wants to verify the package's metadata (version, dependencies, and maintainer scripts) before installing it on a production system, but does not want to actually install it. Which command should the administrator use?
Medium17Refer 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?
Medium18You 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?
Easy19Which command lists all installed packages on a Debian-based system by querying the dpkg database?
Easy20A 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?
Easy21An 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?
Easy22Arrange the steps to schedule a cron job that runs a script every day at 2 AM.
Medium23Which THREE locations are used to configure package repositories on a typical Linux system? (Choose three.)
Hard24A system administrator needs to determine which package owns the file /usr/bin/htop on a Debian-based server. Which command should the administrator use?
Easy25A 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.)
Hard26Which THREE are valid fields in a GRUB 2 configuration file (grub.cfg) generated by update-grub? (Choose three.)
Hard27A Linux administrator is configuring a CentOS 7 server and needs to manage software packages using the native RPM toolset. The administrator wants to perform two tasks: (1) verify the integrity of an installed package against its original metadata, and (2) list all files installed by a specific package. Which TWO commands should the administrator use? (Choose two.)
Hard28Which TWO commands are used to install packages on a Debian-based system? (Choose two.)
Easy29A 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?
Medium30A 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?
Medium31Which THREE package management tools are native to Debian-based Linux distributions? (Choose exactly three.)
Easy32A Linux administrator is preparing a new Ubuntu 22.04 server and needs to ensure that the package lists are up to date before installing software. Which command should be used to refresh the package index from all configured repositories?
Easy33A 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?
Medium34A Linux administrator wants to update the local package index from all configured repositories on an Ubuntu system. Which command accomplishes this?
Easy35A junior administrator needs to install the package 'nginx' on a Debian 12 server, but the required package file is not available in any configured APT repository. The administrator has downloaded the file 'nginx_1.22.1-9_amd64.deb' to the current directory. Which command should be used to install this local package file while automatically resolving and installing any missing dependencies from the configured repositories?
Medium36A 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?
Easy37When 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?
Hard38A 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?
Medium39A system administrator is preparing a custom RPM package for internal distribution. The package must be built from source code and a spec file. Which command should be used to build the binary RPM from the spec file?
Medium40Based on the dpkg -l output in the exhibit, what does the 'rc' status indicate for the apache2 package?
Medium41A 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?
Hard42An administrator needs to install a package named 'nginx' on a Debian system, but the package is already installed. The administrator wants to ensure that the latest available version from the configured repository is installed, upgrading if necessary. Which command should be used?
Easy43An 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?
Medium44A 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?
Medium45Refer 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?
Easy46On a Fedora system, which command is used to update all installed packages to their latest versions?
Easy47A 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?
Hard48Refer to the exhibit. Based on the dpkg output, what is the status of the 'ftp' package?
Easy49A 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?
Medium50An openSUSE administrator needs to add a new repository from a URL and refresh the package cache. Which command sequence accomplishes this?
Hard51Which TWO directories are commonly used to store source code before compiling? (Choose two.)
Medium52After 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?
Hard53A junior administrator needs to install the package 'nginx' on an Ubuntu 22.04 server. They want to ensure all required dependencies are automatically resolved and installed. Which command should they use?
Easy54Which TWO characteristics describe the difference between 'apt-get' and 'aptitude'? (Choose two.)
Medium55A junior administrator needs to install the package 'nginx' on an Ubuntu 22.04 server. They download the nginx_1.18.0-6ubuntu14.4_amd64.deb file from a vendor website and run the command 'dpkg -i nginx_1.18.0-6ubuntu14.4_amd64.deb'. The installation fails with an error stating that the package depends on 'libnginx-mod-http-image-filter'. Which command should the administrator run next to resolve the missing dependency?
Medium56Match each Linux directory to its standard purpose.
Medium57A system administrator needs to install a new kernel on a Debian-based system. Which TWO commands can be used to achieve this? (Choose TWO.)
Medium58A Linux administrator needs to install a single Debian package file named 'custom-tool_2.1.0_amd64.deb' that was downloaded from a vendor's website. The package has several dependencies that are not currently installed, and the administrator wants the package manager to automatically resolve and install those dependencies from the configured repositories. Which command should the administrator use?
Medium59A 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?
Hard60A 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?
Hard61Which TWO of the following are Debian package management tools?
Easy62Based on the exhibit, the 'custom' repository shows 0 packages. What is the most likely cause?
Hard63A user downloaded a Debian package file named 'software.deb'. Which command should be used to install it?
Easy64Refer 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?
Hard65During boot, a server loads the wrong kernel. Which file should the administrator modify to change the default kernel in a standard GRUB 2 configuration?
Medium66Refer to the exhibit. An administrator wants to verify the integrity of the kernel-core package by checking its signature. Which command is used?
Easy67A 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?
Medium68An 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?
Hard69A system administrator needs to determine which package owns the file /usr/bin/htop on a Debian-based system. Which command will provide this information?
EasyOther domains
All LPIC-1 exam domains
Frequently asked questions
- What does the Linux Installation and Package Management domain cover on the LPIC-1 exam?
- 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 many questions are in this domain?
- This page lists all 69 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.