You are viewing a single thread.
View all comments View context
1 point

-No spying

depending on the distro

-No ads

depending on the distro

-Can uninstall anything you don’t want

How can you uninstall systemd?

permalink
report
parent
reply
11 points
*

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/

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

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

Community stats

  • 6.9K

    Monthly active users

  • 7K

    Posts

  • 187K

    Comments