Practice area
LPIC-1 101: Installation and Package Management
Plan disk layout, inspect boot and package state, identify shared library issues, and reason about Linux guests without breaking package databases.
Linux One Liners is an independent study and practice resource. It is not affiliated with, endorsed by, or approved by LPI, The Linux Foundation, CompTIA, or any certification provider. This site does not provide exam dumps or real exam questions.
Source status
Source status: LPI LPIC-1 overview verified July 3, 2026. Current version 5.0; exams 101-500 and 102-500.
This page paraphrases study areas into command practice. It does not copy official objective text wholesale and is not an exam dump.
Plain-English goal
Practice area: installation planning, boot loaders, libraries, Debian/RPM package tools, and virtualization awareness. Exam/domain: 101-500.
read the situation
Command, output, and next step
Command anatomy
lsblk -f && findmnt -rno SOURCE,FSTYPE,TARGET / /boot /home 2>/dev/null
findmnt- show the mount that contains a target path
df- fallback filesystem capacity check when present
TARGET- the mount point being used
FSTYPE- the filesystem type
OPTIONS- read/write and behavior flags
Annotated output
TARGET SOURCE FSTYPE OPTIONS
/ /dev/nvme0n1p2 ext4 rw,relatime
/var /dev/nvme0n1p4 ext4 rw,relatime
/srv tank/srv zfs rw,relatime
What to notice
- TARGET
- the mount point being used
- SOURCE
- the backing device or dataset
- FSTYPE
- filesystem type
- OPTIONS
- read/write and behavior flags
Safe vs unsafe move
Common wrong move
Assuming a path is on / when it is a separate mount.
Next safe command
df -hT /srv
Troubleshooting ladder
- Name the symptom.
- Inspect read-only state.
- Find the owner, service, file, device, mount, or route.
- Read the decisive output field.
- Choose the next narrow command.
- Avoid broad or destructive changes.
- Make the smallest justified change if required.
- Verify and record what changed.
How to get help
- Know the commandUse
command --help, thenman commandfor the full reference. - Know the conceptUse
apropos keywordorman -k keywordto discover command names. - Maybe a shell builtinUse
type command,command -V command, thenhelp command. - Service behaviorUse
systemctl status serviceandjournalctl -u servicebefore restarting. - Package ownershipUse
dpkg -S,rpm -qf, or the distro package tool for the installed file.
Study plan
- Practice reading storage layout: disks, partitions, filesystems, swap, labels, UUIDs, mount points, and where boot files live.
- Review the boot loader as a recovery boundary: know what GRUB does and what evidence to collect before reinstalling it.
- Use package tools in inspection mode first: package status, file ownership, repositories, held packages, and simulated upgrades.
- Treat virtualization/cloud/container context as part of troubleshooting: cloned IDs, device names, dynamic disks, and guest tools can change assumptions.
Command labs
Run these in a lab shell or disposable machine first. The point is to explain the output, not just memorize the command.
Map disks to mounts
lsblk -f && findmnt -rno SOURCE,FSTYPE,TARGET / /boot /home 2>/dev/null
You should be able to identify root, boot, optional home, filesystem type, and labels/UUIDs.
Annotated output
TARGET SOURCE FSTYPE OPTIONS
/ /dev/nvme0n1p2 ext4 rw,relatime
/var /dev/nvme0n1p4 ext4 rw,relatime
/srv tank/srv zfs rw,relatime
What to notice: TARGET, SOURCE, FSTYPE, OPTIONS.
Next safe command: df -hT /srv
Find the package owning a file
dpkg -S /usr/bin/ssh 2>/dev/null || rpm -qf /usr/bin/ssh
The owning package should be shown without installing or removing anything.
Annotated output
openssh-client: /usr/bin/ssh
What to notice: package, path.
Next safe command: dpkg -s openssh-client | sed -n '1,12p'
Preview Debian upgrades safely
apt list --upgradable 2>/dev/null | head -30 && apt -s upgrade | sed -n '1,80p'
Candidate upgrades and simulated package actions should be visible before real changes.
Annotated output
Usage: command [OPTION]... TARGET
Try 'command --help' for common flags.
Try 'man command' for full reference.
What to notice: Usage, --help, man.
Next safe command: command --help
command families
Commands to practice
lsblkblkidfindmntgrub-installlddldconfigaptdpkgdnfrpmzypper
Related drills
Flashcards
Why use apt -s before upgrading?
It simulates actions so you can inspect installs, removals, holds, and conflicts first.
What question does dpkg -S or rpm -qf answer?
Which installed package owns a given file.
Why do UUIDs matter in /etc/fstab?
They are stable identifiers when device names change.
What can ldd reveal?
Which shared libraries a binary needs and whether any are missing.
Quick quiz
Check the reasoning locally in your browser. Answers are not sent anywhere.