User Tools

Site Tools


Minimal installation of Fedora

For Fedora 38

This is how to do a minimal installation of Fedora.

  1. Boot the CD, choose “Install Fedora 38”
  2. Choose your language, click continue
  3. Choose “Installation Destination”, choose “Storage Configuration” → “Custom”, click “Done”
  4. Create partitions as you wish, click “Done”
  5. Back in the Installation summary choose “Software selection”
  6. choose “Fedora Custom Operating System” (Note: this is even smaller than the “Minimal Installation” option)
  7. Create a User account by clicking at “User Creation”
  8. Click “Done”, then “Begin Installation”
  9. When finished click “Reboot System”

After installation login and become root and execute the following commands

systemctl disable systemd-userdbd
systemctl disable systemd-oomd
systemctl disable systemd-resolved
rm -f /etc/resolv.conf
# a privacy respecting nameserver from
echo "nameserver" >/etc/resolv.conf
dnf update
# replace dnf with dnf5, a more lightweight and faster implementation of dnf
dnf install dnf5
ln -sf /usr/bin/dnf5 /usr/bin/dnf
dnf upgrade
# remove unnecessary packages
dnf remove firewalld
dnf remove sssd-*
dnf remove audit
dnf remove NetworkManager
# Install DHCP client daemon
dnf install dhcpcd
systemctl enable dhcpcd@eth0 # replace eth0 with your network interface

Then reboot. Congratulation, you have now the smallest Fedora system possible.

Memory consumption (htop): 125 MB

A minimal X environment

In this example we use herbstluftwm. Execute the following commands as user

sudo dnf install herbstluftwm xterm xorg-x11-server-Xorg xorg-x11-xinit xorg-x11-drv-* mesa-dri-drivers
echo "exec herbstluftwm" >~/.xinitrc

Once X and herbstluftwm has launched press Alt + Return to launch xterm

Memory consumption (X+herbstluftwm+xterm+htop): 168 MB

A minimal Wayland environment

In this example we use river, a simple tiling Wayland compositor

Execute the following commands as user

sudo dnf install river foot
mkdir -p ~/.config/river
cp /usr/share/river/init.example  ~/.config/river/init

Hit Super+Shift+Return for launching foot terminal

Memory consumption (river+foot+htop): 159 MB

osinstallation/fedora.txt · Last modified: 2023/04/22 19:23 by senioradmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki