Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Linux Installation and Package Management practice sets

LPIC-1 Linux Installation and Package Management • Complete Question Bank

LPIC-1 Linux Installation and Package Management — All Questions With Answers

Complete LPIC-1 Linux Installation and Package Management question bank — all 0 questions with answers and detailed explanations.

82
Questions
Free
No signup
Certifications/LPIC-1/Practice Test/Linux Installation and Package Management/All Questions
Question 1easymultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 2mediummultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 3hardmultiple choice
Read the full Linux Installation and Package Management 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?

Question 4mediummultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 5easymultiple choice
Read the full Linux Installation and Package Management explanation →

A technician needs to remove a package named 'apache2' along with its configuration files from a Debian system. Which command should be used?

Question 6mediummultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 7hardmultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Question 8mediummulti select
Read the full Linux Installation and Package Management explanation →

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

Question 9hardmulti select
Read the full Linux Installation and Package Management explanation →

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

Question 10mediummultiple choice
Read the full Linux Installation and Package Management explanation →

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)
```
Question 11hardmultiple choice
Read the full Linux Installation and Package Management explanation →

Based on the exhibit, the 'custom' repository shows 0 packages. What is the most likely cause?

Exhibit

Refer to the exhibit.

```
$ cat /etc/yum.repos.d/custom.repo
[custom]
name=Custom Repository
baseurl=http://repo.example.com/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://repo.example.com/RPM-GPG-KEY-custom
```

$ yum repolist
repo id              repo name                status
custom               Custom Repository         0
Question 12hardmultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Question 13mediummulti select
Read the full Linux Installation and Package Management explanation →

A system administrator needs to install a new kernel on a Debian-based system. Which TWO commands can be used to achieve this? (Choose TWO.)

Question 14hardmultiple choice
Read the full Linux Installation and Package Management explanation →

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
```
Question 15easymultiple choice
Read the full NAT/PAT explanation →

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?

Question 16mediumdrag order
Read the full Linux Installation and Package Management explanation →

Arrange the steps to schedule a cron job that runs a script every day at 2 AM.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 17mediumdrag order
Read the full Linux Installation and Package Management explanation →

Order the steps to configure a Linux system to use a proxy server for HTTP.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 18mediummatching
Read the full Linux Installation and Package Management explanation →

Match each Linux directory to its standard purpose.

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

Concepts
Matches

System configuration files

Variable data (logs, databases)

User-installed software and libraries

Temporary files (often cleared on reboot)

Virtual file system for process and kernel info

Question 19mediummatching
Read the full Linux Installation and Package Management explanation →

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

Question 20easymultiple choice
Read the full Linux Installation and Package Management explanation →

A system administrator needs to install a local Debian package file named 'myapp.deb'. Which command should be used?

Question 21easymultiple choice
Read the full Linux Installation and Package Management explanation →

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

Question 22easymultiple choice
Read the full Linux Installation and Package Management explanation →

A Linux administrator wants to update the local package index from all configured repositories on an Ubuntu system. Which command accomplishes this?

Question 23mediummultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Question 24mediummultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 25mediummultiple choice
Read the full Linux Installation and Package Management explanation →

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

Question 26hardmultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Question 27hardmultiple choice
Read the full Linux Installation and Package Management explanation →

An 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?

Question 28hardmultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 29easymulti select
Read the full Linux Installation and Package Management explanation →

Which TWO commands are used to install packages on a Debian-based system? (Choose two.)

Question 30mediummulti select
Read the full Linux Installation and Package Management explanation →

Which TWO characteristics describe the difference between 'apt-get' and 'aptitude'? (Choose two.)

Question 31hardmulti select
Read the full Linux Installation and Package Management explanation →

Which THREE are valid fields in a GRUB 2 configuration file (grub.cfg) generated by update-grub? (Choose three.)

Question 32easymultiple choice
Read the full Linux Installation and Package Management explanation →

Refer to the exhibit. Based on the dpkg output, what is the status of the 'ftp' package?

Exhibit

Refer to the exhibit.

$ dpkg -l | grep -E '^ii|^rc'
ii  curl         7.68.0-1ubuntu2   amd64   command line tool for transferring data
rc  ftp          0.17-34           amd64   classic FTP client
ii  wget         1.20.3-1ubuntu1   amd64   non-interactive network downloader
Question 33mediummultiple choice
Read the full Linux Installation and Package Management explanation →

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
Question 34hardmultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Network Topology
$ sudo grub-installversion-rw-rrRefer to the exhibit.grub-install (GRUB) 2.04$ ls -l /boot/grub/grub.cfg$ cat /etc/default/grubGRUB_DEFAULT=0GRUB_TIMEOUT=5GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"#GRUB_TERMINAL_OUTPUT=console
Question 35easymultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 36mediummultiple choice
Read the full Linux Installation and Package Management explanation →

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

Question 37hardmultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 38easymultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Question 39mediummultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 40hardmultiple choice
Read the full Linux Installation and Package Management explanation →

An openSUSE administrator needs to add a new repository from a URL and refresh the package cache. Which command sequence accomplishes this?

Question 41easymultiple choice
Read the full Linux Installation and Package Management explanation →

Which command lists all installed packages on a Debian-based system by querying the dpkg database?

Question 42mediummultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 43hardmultiple choice
Read the full Linux Installation and Package Management explanation →

When 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?

Question 44mediummulti select
Read the full Linux Installation and Package Management explanation →

A Debian system has some partially installed packages due to a failed installation. Which TWO commands can help resolve the broken dependencies? (Choose exactly two.)

Question 45hardmulti select
Read the full Linux Installation and Package Management explanation →

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

Question 46easymulti select
Read the full NAT/PAT explanation →

Which THREE package management tools are native to Debian-based Linux distributions? (Choose exactly three.)

Question 47mediummultiple choice
Read the full Linux Installation and Package Management explanation →

Based on the dpkg -l output in the exhibit, what does the 'rc' status indicate for the apache2 package?

Exhibit

Refer to the exhibit.

```
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version         Architecture Description
+++-===================-===============-============-============================================
rc  apache2             2.4.41-4ubuntu3 amd64        Apache HTTP Server
```
Question 48hardmultiple choice
Read the full Linux Installation and Package Management explanation →

The 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?

Network Topology
# rpm -qaqueryformat '%{NAME} %{VERSION}-%{RELEASE} %{INSTALLTIME}Refer to the exhibit.```' | grep opensshopenssh-server-8.0p1-5.el8 1592352000
Question 49easymultiple choice
Read the full Linux Installation and Package Management explanation →

Refer 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?

Exhibit

Refer to the exhibit.

```
$ apt-cache showpkg vim
Package: vim
Versions: 
2:8.2.3995-1ubuntu2.1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal-updates_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal-updates_main_binary-amd64_Packages
                  MD5: d41d8cd98f00b204e9800998ecf8427e
2:8.2.3995-1ubuntu1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_main_binary-amd64_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_main_binary-amd64_Packages
                  MD5: d41d8cd98f00b204e9800998ecf8427e

Reverse Depends: 
  vim-tiny,vim
  vim-runtime,vim
  vim-addon-manager,vim
  vim-gtk3,vim
  vim-athena,vim
  vim-gnome,vim
  vim-nox,vim
  vim-gtk,vim
Dependencies: 
2:8.2.3995-1ubuntu2.1 - libc6 (2 2.31) libacl1 (2 2.2.53) libgpm2 (0 1.20.7) libpython3.8 (0 3.8.2) libselinux1 (2 3.0) libtinfo5 (2 6.2) vim-common (5 2:8.2.3995-1ubuntu2.1) vim-runtime (0 2:8.2.3995-1ubuntu2.1)
2:8.2.3995-1ubuntu1 - libc6 (2 2.31) libacl1 (2 2.2.53) libgpm2 (0 1.20.7) libpython3.8 (0 3.8.2) libselinux1 (2 3.0) libtinfo5 (2 6.2) vim-common (5 2:8.2.3995-1ubuntu1) vim-runtime (0 2:8.2.3995-1ubuntu1)
Provides: 
  editor
```
Question 50mediummultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Question 51easymultiple choice
Read the full Linux Installation and Package Management explanation →

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

Question 52hardmultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 53easymultiple choice
Read the full Linux Installation and Package Management explanation →

A technician needs to add the official Debian repository for the 'buster' release. Which line should be added to /etc/apt/sources.list?

Question 54mediummultiple choice
Read the full Linux Installation and Package Management explanation →

A system administrator needs to find out which package installed the file /usr/bin/foo on a Red Hat system. Which command should be used?

Question 55hardmultiple choice
Read the full Linux Installation and Package Management explanation →

An 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?

Question 56mediummultiple choice
Read the full Linux Installation and Package Management explanation →

An 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?

Question 57hardmultiple choice
Read the full Linux Installation and Package Management explanation →

A 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?

Question 58easymultiple choice
Read the full Linux Installation and Package Management explanation →

On a Fedora system, which command is used to update all installed packages to their latest versions?

Question 59easymulti select
Read the full Linux Installation and Package Management explanation →

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

Question 60mediummulti select
Read the full Linux Installation and Package Management explanation →

Which three options are valid ways to install a package 'curl' on a RHEL 8 system? (Choose three.)

Question 61hardmulti select
Read the full Linux Installation and Package Management explanation →

A 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.)

Question 62mediummultiple choice
Read the full Linux Installation and Package Management explanation →

Refer 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?

Exhibit

ii  adduser         3.118          all          Add and remove users and groups
ii  apt             2.0.9          amd64        commandline package manager
ii  base-files      11             amd64        Debian base system miscellaneous files
ii  base-passwd     3.5.47         amd64        Debian base system master password and group files
ii  bash            5.0-6          amd64        GNU Bourne Again SHell
Question 63hardmultiple choice
Read the full Linux Installation and Package Management explanation →

Refer 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?

Exhibit

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
Question 64easymultiple choice
Read the full NAT/PAT explanation →

Refer to the exhibit. An administrator wants to verify the integrity of the kernel-core package by checking its signature. Which command is used?

Exhibit

Name        : kernel-core
Version     : 4.18.0
Release     : 348.el8
Architecture: x86_64
Install Date: Mon 10 Jan 2022 10:00:00 AM EST
Group       : System Environment/Kernel
Size        : 73456789
License     : GPLv2
Signature   : RSA/SHA256, Mon 10 Jan 2022 09:00:00 AM EST, Key ID 12345678
Source RPM  : kernel-4.18.0-348.el8.src.rpm
Build Date  : Mon 10 Jan 2022 08:00:00 AM EST
Build Host  : x86-02.mbox.example.com
URL         : http://www.kernel.org/
Summary     : The kernel core image
Description : This package contains the kernel core image.
Question 65easymultiple choice
Read the full Linux Installation and Package Management explanation →

A user downloaded a Debian package file named 'software.deb'. Which command should be used to install it?

Question 66easymultiple choice
Read the full Linux Installation and Package Management explanation →

An 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?

Question 67mediummultiple choice
Read the full NAT/PAT explanation →

A 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?

Question 68mediummultiple choice
Read the full Linux Installation and Package Management explanation →

During boot, a server loads the wrong kernel. Which file should the administrator modify to change the default kernel in a standard GRUB 2 configuration?

Question 69hardmultiple choice
Read the full Linux Installation and Package Management explanation →

After 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?

Question 70hardmultiple choice
Read the full Linux Installation and Package Management explanation →

An 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?

Question 71easymulti select
Read the full Linux Installation and Package Management explanation →

Which TWO commands are used to manage Debian packages? (Choose two.)

Question 72mediummulti select
Read the full Linux Installation and Package Management explanation →

Which TWO directories are commonly used to store source code before compiling? (Choose two.)

Question 73hardmulti select
Read the full Linux Installation and Package Management explanation →

Which THREE locations are used to configure package repositories on a typical Linux system? (Choose three.)

Question 74easymultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Question 75mediummultiple choice
Read the full Linux Installation and Package Management explanation →

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?

Question 76mediummultiple choice
Read the full Linux Installation and Package Management explanation →

You 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?

Question 77hardmultiple choice
Read the full Linux Installation and Package Management explanation →

You 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?

Question 78hardmultiple choice
Study the full Python automation breakdown →

A 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?

Question 79easymultiple choice
Read the full Linux Installation and Package Management explanation →

You 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?

Question 80easymulti select
Read the full Linux Installation and Package Management explanation →

Which TWO of the following are Debian package management tools?

Question 81mediummultiple choice
Read the full NAT/PAT explanation →

An 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?

Exhibit

Refer to the exhibit.

$ apt-cache policy apache2
apache2:
  Installed: (none)
  Candidate: 2.4.41-4ubuntu3.5
  Version table:
     2.4.41-4ubuntu3.5 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     2.4.41-4ubuntu3.4 500
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     2.4.41-4ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
Question 82hardmultiple choice
Read the full NAT/PAT explanation →

A 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?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

LPIC-1 Practice Test 1 — 10 Questions→LPIC-1 Practice Test 2 — 10 Questions→LPIC-1 Practice Test 3 — 10 Questions→LPIC-1 Practice Test 4 — 10 Questions→LPIC-1 Practice Test 5 — 10 Questions→LPIC-1 Practice Exam 1 — 20 Questions→LPIC-1 Practice Exam 2 — 20 Questions→LPIC-1 Practice Exam 3 — 20 Questions→LPIC-1 Practice Exam 4 — 20 Questions→Free LPIC-1 Practice Test 1 — 30 Questions→Free LPIC-1 Practice Test 2 — 30 Questions→Free LPIC-1 Practice Test 3 — 30 Questions→LPIC-1 Practice Questions 1 — 50 Questions→LPIC-1 Practice Questions 2 — 50 Questions→LPIC-1 Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

GNU and Unix CommandsDevices, Filesystems and FHSLinux Installation and Package ManagementEssential System Services and NetworkingAdministrative TasksShells, Scripting and Data ManagementSystem Architecture

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Linux Installation and Package Management setsAll Linux Installation and Package Management questionsLPIC-1 Practice Hub