====== Change Debian from systemd to sysvinit ====== Saved from [[http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_Buster_installation|without-systemd.org]] and it's [[https://web.archive.org/web/20170724073944/http://without-systemd.org/wiki/index.php/Debian_Stretch|Stretch update]] (updated and simplified for bullseye by myself) ===== About these instructions ===== These instructions are for installing the sysvinit init program on Debian systems. This is done by installing the sysvinit-core package for an init system that's not systemd, and a set of elogind packages to provide backwards compatibility with the systemd library packages. These instructions work on buster systems, but also you can run these commands near the end of the Debian install procedure if you want to remove systemd before you even finish installing Debian. ===== Install the relevant sysvinit and elogind compatibility packages ===== To install the sysvinit-core package and remove the systemd packages, run: apt install sysvinit-core ===== Reboot your system ===== reboot ===== Create an APT preferences pin to prevent reinstall of shitstemd ===== echo -e 'Package: systemd-sysv\nPin: release *\nPin-Priority: -1\n' > /etc/apt/preferences.d/nosystemd ===== Optional steps ===== * Install udisks2 and/or policykit if needed for graphical desktops * Remove the systemd packages, including libpam-systemd: apt remove --purge --auto-remove systemd