CertGrid CertGrid
Concepts·LPIC-1

LPIC-1 lab: Debian and RPM package families

Objectives 102.4 and 102.5 examine Debian and RPM package management separately, and both appear on the 101 paper. This guide asks each family the same three ordinary questions - what tools do you have, which package owns this file, what does that package contain - and is specific about where the two answers differ in shape, in wording and in the package name itself.

Start Here Guide 2 of 33 Beginner

Both package families, because LPI names dpkg and rpm in the objectives themselves. Every output is captured on the host it belongs to.
Server NameIP AddressOSRolesCPURAMHDD
LPIC1-A01192.168.0.76Ubuntu 26.04 LTSDebian-family host - dpkg and apt, which objective 102.4 names2 Core4 GB50 GB
LPIC1-B01192.168.0.77AlmaLinux 10.2RPM-family host - rpm and dnf, which objective 102.5 names2 Core4 GB50 GB

This guide includes

Use this before the packaging objectives. This matters because 102.4 and 102.5 examine Debian and RPM separately - the same question has two answers, and both are examinable.

Before you start

  1. The tools each objective names

    102.4 names one pair, 102.5 names the other. Both pairs are examined.

    bash Example session
    dpkg --version | head -1; apt --version; echo "--- objective 102.4 names these"Debian 'dpkg' package management program version 1.23.7 (amd64).apt 3.2.0 (amd64)--- objective 102.4 names theserpm --version; dnf --version | head -1; echo "--- objective 102.5 names these"RPM version 4.19.1.14.20.0--- objective 102.5 names these

    Expected resultdpkg 1.23.7 with apt 3.2.0, and rpm 4.19.1.1 with dnf 4.20.0.

    Success conditionYou have both toolchains in front of you and know which layer each sits in.

  2. The same question, asked twice

    Which package owns a file - on each family.

    bash Example session
    dpkg -S /usr/bin/sshopenssh-client: /usr/bin/sshrpm -qf /usr/bin/sshopenssh-clients-9.9p1-23.el10_2.alma.1.x86_64

    Expected resultopenssh-client: /usr/bin/ssh on Debian, and the full NEVRA openssh-clients-9.9p1-23.el10_2.alma.1.x86_64 on RPM.

    Success conditionYou can answer an ownership question on either family.

  3. What that package contains

    The listing question, both ways - and they do not line up.

    bash Example session
    echo "what does that package contain?"; dpkg -L openssh-client | head -6what does that package contain?/./etc/etc/ssh/etc/ssh/ssh_config/etc/ssh/ssh_config.d/usrecho "what does that package contain?"; rpm -ql openssh-clients | head -6what does that package contain?/etc/ssh/ssh_config/etc/ssh/ssh_config.d/etc/ssh/ssh_config.d/50-redhat.conf/usr/bin/scp/usr/bin/sftp/usr/bin/ssh

    Expected resultdpkg -L starts at /. and lists directories as well as files; rpm -ql lists paths only, beginning at /etc/ssh/ssh_config.

    Success conditionYou can list a package's contents on either family and read the difference.

Troubleshooting

Official sources