systemdont - how to avoid installing systemd in any distro
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
(disclaimers: use at own risk ~ i have not tested all these methods ~ on distros that have become very systemd-centric there may be bumps in the road ~ if uninstalling systemd to liberate, please ensure you have an init system in place, or are capable of restoring from another os/live environment and chrooting, or happy to reinstall from scratch without systemd in the first place, if your distro so permits) (disclaimer disclaimer ~ ^ that's just to cover my ass. i'm sure it'll be fine. crack at! enjoy the liberation.)
as seen on my blog, but skipping the outraged rant about systemd and where it seems to be heading (potteringOS), here are the practical tips to help you avoid systemd.
to prevent systemd being installed on your system during upgrades or other package installs:
for gentoo/funtoo based systems using portage:
simply include the "-systemd" useflag in your /etc/portage/make.conf, like:
Code:
USE="-systemd"
(along with whatever other useflags you have of course)
for archlinux based systems:
add in your /etc/pacman.conf:
Code:
NoExtract=usr/lib/systemd/system/*
(as advised in the pacman page of archwiki)
for fedora:
best i could find was a thread full of people saying to use another distro. seems fedora is close enough to the belly of the beast, that you're not free to pick your init. http://forums.fedoraforum.org/showthread.php?t=297418
~please share if u have a solution.
~ maybe switch to something like LSD linux (less systemd linux). *shrug*
for slackware:
you're still good, for now.
for dragora:
you're still good, for now.
for exherbo:
in /etc/paludis/options.conf
Code:
*/* -systemd
you are likely skilled enough to have figured this out for yourself so far, and as with other distros you can find your own choice of init to install.
additionally:
another way to accomplish freedom from systemd and keep the distro you love, is to put that distro into a bedrocklinux installation as a client distro. then you even get to do some cool mix-and-match cross-distro magic, and retain (and leverage) the empoweringness of nix & foss.
please share tips how to avoid systemd in other distros / package managers, and maybe i'll remember to revisit this and keep this original post up to date.
any other corrections, updates, elaborations or softly worded criticisms welcome.
Last edited by Siljrath; 09-02-2014 at 02:13 PM.
Reason: minor tweaks for clarity + disclaimer(s) + extra suggestion
Nice! This will be useful when upgrading to Jessie. It will otherwise automatically bring in systemd, right?
that's right.
though i make no guaruntees that all these methods are 100% effective, or will remain 100% effective, but that disclaimer aside, i am fairly confident pinning "systemd*" to a negative number should prevent systemd infestation on a debian system.
if in doubt, go for the overkill method (hastebin link), and/or look before you leap, when installing things to see if anything else ever tries to sneak through. [edit - and then pin in /etc/apt/preferences accordingly if so]
Last edited by Siljrath; 09-02-2014 at 02:15 PM.
Reason: and pin
I must admit that you have finally piqued my curiosity. Aside from blah-blah about "evil corporations" and so on, what exactly is "so utterly wrong" about this thing?
I must admit that you have finally piqued my curiosity. Aside from blah-blah about "evil corporations" and so on, what exactly is "so utterly wrong" about this thing?
yup same question. not wanting to start a flame war by any stretch of the imagination. my personal experience with systemd stems from Fedora 17-20 and now CentOS v7. outside for firewalld in CentOS v7 not functioning properly, i have had very good results with the new systemd. so id like to know what all the hubbub is all about.
All hubbub is not about whether or not systemd works. It is about a disagreement between two camps:
On one side are the people who do not agree with the UNIX-inspired modular design being replaced by an integrated system that puts many processes under the control of one programme.
On the other side are those who believe an integrated system that removes the "problems" of modularity and choice is a good thing.
It is an argument that will not end.
Last edited by Randicus Draco Albus; 09-02-2014 at 08:28 PM.
1. Unfortunately it uses a thundering herd scheduling for a lot of services... What works today may not work tomorrow just by enabling another service.
2. It now permits corrupted logs from being read (they are binary, and not readable except by a custom tool - which doesn't work if something happens to corrupt the file - even a little).
3. It can't be debugged by an administrator when things go wrong.
4. boot hangs, shutdown hangs... and little information about why. Doesn't happen very often with simple systems though... but trying to fix something under pressure is problematical.
5. It depends on network analysis to determine when things should/should not be started/stopped. There are some nice features there, but it is an NP hard problem to solve, and doesn't scale well.
6. It puts all your eggs in one basket. A failure of any part will cause a cascading failure in the rest.
Was GNU/Linux ever in need of such strong-armed consolidation? It was fragmented for a reason, to allow communal contribution to the overall of the whole and segregate services so that if anything went foul, the system would still be working. The only keystone daemon/service of the system was init. Init was the only service that had to not fail under any circumstance.
However, the more you pack into and try to run through PID1, the bigger the instance that if something fails, when it fails, and it fails, the entire system is lost. I dread to think about D-Bus not just being ran through PID1 but the kernel also.
Even smaller alternative init systems don't allow anything into PID1 but the init service supervisor. Everything else is ran separately.
I have a slightly less issue with the part of dbus added to the kernel - it isn't everything, and I think it will be more reliable. And I think what does get there will at least have more security controls available that what currently exists.
Right now Fedora/RH 7/CentOS 7 has some rather big DOS vulnerabilities:
1) using tmpfs for /run AND allowing user writable files permits it to be filled - causing problems for service restarts/starts/login. A big failure here is that the evidence is wiped out when the system reboots or the user logs out.
2) using tmpfs for /tmp at the same time allows the system to be deadlocked.
I never understood one thing about why we needed systemd.
We had Daniel Bernstein's daemontools back nearly a decade ago that did process supervision, parallel service execution and launching, and was able to allow PID1 to self-sustain the system and keep services running if they failed.
How come no distributions ever used that project to supplement sysvinit?
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Well here's yet another systemd thread that has gone from a pure help thread that is worthwhile to those who don't want to use systemd, to a thread of lets discuss and bag out individuals. If you use systemd then that is your preference, if you don't that also is your preference. I'd like to see at least 1 systemd thread that doesn't get into bagging individuals or making value judgements about the worthiness of individual distros based on them having or not having systemd. Will I see that in my lifetime (I've probably got another 40 years to go)? probably not.
In Debian Jessie systemd is working fine. I have multiple Jessie installs and not one has a systemd related problem. I would add to this that they all seem to boot slightly quicker with systemd than with the old init system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.