this post was submitted on 28 Jan 2025
148 points (88.5% liked)

Linux

49393 readers
1748 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] golden_zealot@lemmy.ml 6 points 1 day ago* (last edited 1 day ago) (1 children)

It will differ by distro, but generally for debian, you begin uninstalling systemd by installing something else like SysV init:

apt install sysvinit-core sysvinit-utils
cp /usr/share/sysvinit/inittab /etc/inittab

Then you will need to configure grub by editing /etc/default/grub changing:

GRUB_CMDLINE_LINUX_DEFAULT="init=/bin/systemd console=hvc0 console=ttyS0"

to

GRUB_CMDLINE_LINUX_DEFAULT="init=/lib/sysvinit/init console=hvc0 console=ttyS0"

and then executing update-grub as root.

Then you can reboot so that the system boots off of sysvinit instead and then purge systemd with apt-get remove --purge --auto-remove systemd. This also removes packages that depend on systemd.

Then you pin systemd packages to prevent apt from installing systemd or systemd-like packages in the future.

echo -e 'Package: systemd\nPin: release *\nPin-Priority: -1' > /etc/apt/preferences.d/systemd
echo -e '\n\nPackage: *systemd*\nPin: release *\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd

Depending on if the distro is multiarch, you might also need:

echo -e '\nPackage: systemd:amd64\nPin: release *\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
echo -e '\nPackage: systemd:i386\nPin: release *\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd

This information was sourced from this wiki dedicated specifically to removing systemd on multiple distributions and replacing it with something else:

https://without-systemd.org/wiki/index_php/Main_Page/

[–] tux0r@feddit.org 4 points 1 day ago (1 children)

Wow. Honestly, thank you! I had entirely forgot that this wiki even exists. I’ve bookmarked your reply. :-)

[–] golden_zealot@lemmy.ml 3 points 1 day ago

Of course, no worries. I seemed to recall there was something out there for this because I read some article a while back that was discussing the scope-creep in systemd, and the problems that result from it. I think I found this wiki originally at that time.