Minimal Slackware64 in Qemu


Slackware is one of those distros I kept trying to install but always ran into issues. This time, I gave it a shot in QEMU and went for a minimalist setup. The thing with Slackware is that, by default, it wants to install everything, over 15 GB of packages, which I’m not a fan of. I don’t like having software I won’t use cluttering up my system, so I tried to keep it lean. After a lot of trial and error and a bunch of failed boots, I finally got it installed. Here’s how I did it.

NOTE
I will update the selected packages if needed. Also, you don’t have to choose what I choose. It’s your system, not mine.

Setup

for Minimal setup i install from A, AP, D, L and N, also i use GRUB and kernel-generic so after install you need to chroot it then install initrd and grub

qemu-img create -f qcow2 Slackware.qcow2 20G

# Slackware Partition
128M EFI System
512M /boot
REST /

# Setup after Install
chroot /mnt
mkinitrd -c -k 5.15.19 -m ext4
grub-install --target=x86_64-efi --efi-directory=/boot/efi
grub-mkconfig -o /boot/grub/grub.cfg

A - Base Linux System

AP - Various Application that do not need X

D - Program Development (C, C++, Lisp, Perl, etc.)

L - System Libraries (needed by KDE, GNOME, X, and more)

N - Networking (TCP/IP, UUCP, Mail, News)