Menu
Linux · 02 Topic · 6 steps

Linux Installation and Package Management

“Disk layout, boot loaders, shared libraries, Debian and RPM packages, and Linux as a virtual machine.”

Before you can use a Linux system, someone has to install it: split the disk, put a boot loader in place, and add software. This topic is that part of the LPIC-1 exam 101-500. It covers how disks are laid out, how GRUB starts the kernel, how programs find their shared libraries, the two big package families (Debian’s .deb and Red Hat’s and SUSE’s .rpm), and what changes when Linux runs as a virtual machine, a cloud instance or a container.

Each byte follows one official LPIC-1 objective, with commands you can run and an exam checklist at the end.

You’ll learn:

  • how to plan partitions, mount points, swap and LVM volumes
  • how to configure, install and use GRUB Legacy and GRUB 2
  • how to find and fix missing shared libraries with ldd and ldconfig
  • how to install, remove and query packages with dpkg, apt-get, apt-cache, rpm, yum/dnf and zypper
  • what to change when you clone a VM, and what cloud-init does

You’ll need: a Linux machine or VM. For the package bytes a container is enough: docker run -it --rm debian or ubuntu for Debian packages, almalinux:9 or fedora for RPM, and opensuse/leap for zypper (you’re root inside them). Partitioning, LVM and GRUB need a VM you don’t mind breaking, and root or sudo.

Start reading →
Byte card for Linux Installation and Package Management: Plan partitions by use: /, /boot (or the ESP), /home, /var and swap. LVM makes resizing easy. GRUB 2: edit /etc/default/grub, then run grub-mkconfig. Never edit grub.cfg by hand. ldd shows a program's libraries; ldconfig rebuilds the cache from /etc/ld.so.conf. dpkg and rpm handle local files; apt, dnf/yum and zypper fetch dependencies from repositories. After cloning a VM, regenerate SSH host keys and the machine ID. cloud-init sets up new instances.

Byte card

The whole topic on one card

  1. Plan partitions by use: /, /boot (or the ESP), /home, /var and swap. LVM makes resizing easy.
  2. GRUB 2: edit /etc/default/grub, then run grub-mkconfig. Never edit grub.cfg by hand.
  3. ldd shows a program's libraries; ldconfig rebuilds the cache from /etc/ld.so.conf.
  4. dpkg and rpm handle local files; apt, dnf/yum and zypper fetch dependencies from repositories.
  5. After cloning a VM, regenerate SSH host keys and the machine ID. cloud-init sets up new instances.

Save it as a cheat sheet, or share it with someone who's learning this too.

Search posts and bytes

Optional account

Keep your progress everywhere

Everything on AminBytes is free to read, with or without an account. Sign in only if you want your commits, streak and merged topics saved, on every device.

or

We keep only your name, avatar and which bytes you finished, and you can delete it all anytime. Privacy