Linux installation and package management — page 3
Objective 102 of LPIC-1 Exam 101-500, worth 18.33% of the exam. This is page 3 of 4 of its question list; page one carries the full objective summary.
- Share of the exam
- 18.33%
- Questions in a real sitting
- roughly 11 of 60
- Questions in this bank
- 62
- Signed for by a person
- 0
- Machine-checked only
- 62
Partly checked. None of the 62 questions here has been read against the cited source by a person. 62 questions have been checked against their cited clause by an automated pass — which is not the same thing, and is not a signature.
Only questions a person has signed for are used in mock exams here. That is the whole difference between the two kinds of checking above.
How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.
What this objective covers
The 62 questions written for this objective cite 6 LPI exam objectives (102.1, 102.2, 102.3, 102.4, 102.5, 102.6) and 22 manual pages (apt-cache(8), apt-file(1), apt-get(8), bootctl(1), cloud-init(1), dpkg(1), dpkg-deb(1), dpkg-reconfigure(8), grub-install(8), grub-mkconfig(8), hier(7), ld.so(8), ldconfig(8), mount(8), qemu-ga(8), rpm(8), sources.list(5), swapon(8), vgcreate(8), yum(8), yum.conf(5), zypper(8)).
They break down as 43 single-answer questions, 8 choose-several questions and 11 type-the-answer questions.
Drill this objective
The trainer can run a short practice set drawn from this objective alone, which is what the weight column above is for: revise the heavy objectives first.
Practise Linux installation and package management
Questions on this objective (page 3 of 4)
- The system clock shows the wrong time zone because the wrong answer was given to the tzdata package's setup questions during installation. Which command presents those questions again without reinstalling the package? machine-checked
- A developer needs to fetch the upstream source of a package with apt-get source, but the command reports that it must find a source package line. Which kind of entry has to be added to /etc/apt/sources.list? machine-checked
- An upgrade is held back because a new version of a package now conflicts with something already installed, so satisfying it requires removing an installed package. Which apt-get subcommand is permitted to do that? machine-checked
- A new repository has just been added to /etc/apt/sources.list.d. Type the apt-get command, including its subcommand and no other arguments, that refreshes the local package indexes from the configured repositories without installing or upgrading anything. machine-checked
- Before installing an unfamiliar package you want to see which files it would place on the system. Type the complete dpkg command, including the option and the file name, that lists the contents of the archive /tmp/htop_3.0.5_amd64.deb without installing it. machine-checked
- Before removing a library package you want to know which other packages in the archive would break because they depend on it. Which command lists them? machine-checked
- Which THREE of these dpkg options query the local database of installed packages, rather than operating on a .deb archive file? machine-checked
- You have downloaded httpd-2.4.57-5.el9.x86_64.rpm but have not installed it, and you want to see exactly which files it would place on the system. Which command lists them? machine-checked
- Investigating a suspected change, you run `rpm -V openssh-server` and one line of output reads `S.5....T. c /etc/ssh/sshd_config`. What does that line say about the file? machine-checked
- `rpm -e libfoo` refuses to run and reports 'Failed dependencies: libfoo.so.1()(64bit) is needed by (installed) barapp-2.1-3.el9.x86_64'. Which response removes libfoo while leaving the system consistent? machine-checked
- Type the rpm command, with its options but with no package name, that lists every package currently installed on the system. machine-checked
- On an openSUSE server you need to see which software repositories are configured, with their aliases and whether each one is currently enabled. Which zypper command shows that? machine-checked
- You have pointed a SUSE machine's repositories at the next distribution release and now want the whole installed package set brought into line with those repositories, allowing packages to be downgraded, replaced by a differently named successor or removed where necessary. Which zypper command performs that kind of upgrade? machine-checked
- The file /etc/yum.repos.d/epel.repo defines a repository with the alias 'epel' and the setting enabled=0. You need to install the package 'htop' from it once, without leaving the repository switched on for future transactions. Which command does that? machine-checked
- A colleague has just published a newer build of an internal package to your local yum repository, but on the client `yum list available` still shows only the old version. Which command makes the client discard its cached repository metadata so the next transaction fetches it again? machine-checked
- Before removing an installed package you want to see the list of capabilities and shared libraries that this package itself depends on. Which rpm query prints that? machine-checked
- You downloaded a vendor package and ran `rpm -K vendor-agent-3.2-1.x86_64.rpm`, which reported the digests as OK but the signature as NOKEY. What should you do to complete the verification? machine-checked
- Which THREE of the following statements about package management on an RPM-based system are correct? machine-checked
- On a Linux guest running under KVM, the root disk appears as /dev/vda rather than /dev/sda, and lsmod shows virtio_blk loaded. What does this indicate? machine-checked
- Which TWO statements correctly describe how an application container differs from a system container on Linux? machine-checked
Practise Linux installation and package management
The other objectives in LPIC-1 Exam 101-500
- 101. System architecture — 13.33% of the exam
- 103. GNU and Unix commands — 43.33% of the exam
- 104. Devices, Linux filesystems, filesystem hierarchy standard — 25% of the exam