LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-02-2014, 06:50 AM   #1
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 226

Rep: Reputation: 66
Cool systemdont - how to avoid installing systemd in any distro


~~~~this content is now a wiki page too, ~which is much nicer, tidier, and will more likely be kept up to date.
http://wiki.linuxquestions.org/wiki/...d_installation
happy de-systemd'ing
~~~~

(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 debian based systems:

in your /etc/apt/preferences, add:
Code:
Package: systemd
Pin: origin ""
Pin-Priority: -1
or, perhaps overkill:
http://hastebin.com/gihiwasoxi.avrasm

there are more suggested ways to be fished out of: http://forums.debian.net/viewtopic.php?t=116770

(thnx to KittenGNU for this tip...)
https://eurynome.mirbsd.org/debs/debidx.htm
"The MirOS repo has some virtual packages to prevent lennartware to install"



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
 
Old 09-02-2014, 08:09 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
This would be a good idea for a wiki page.
 
1 members found this post helpful.
Old 09-02-2014, 11:07 AM   #3
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 226

Original Poster
Rep: Reputation: 66
great idea. i've been looking for a good excuse to get engaged with wiki editing.

http://wiki.linuxquestions.org/wiki/...d_installation

^ my first wiki page. (not bad for a first go, tho could do with more wiki links, and better arrangement of external links yet.)

i like how writing for wiki encouraged a more objective info-based style, and got me checking my facts more too.

thanks for the suggestion smallpond.
 
Old 09-02-2014, 01:54 PM   #4
Soderlund
Member
 
Registered: Aug 2012
Posts: 185

Rep: Reputation: 81
Quote:
Code:
Package: systemd
Pin: origin ""
Pin-Priority: -1
Nice! This will be useful when upgrading to Jessie. It will otherwise automatically bring in systemd, right?
 
Old 09-02-2014, 02:09 PM   #5
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 226

Original Poster
Rep: Reputation: 66
Thumbs up

Quote:
Originally Posted by Soderlund View Post
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
 
1 members found this post helpful.
Old 09-02-2014, 03:06 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
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?
 
Old 09-02-2014, 07:02 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by sundialsvcs View Post
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.

Thanks for the info in advance.
 
Old 09-02-2014, 08:26 PM   #8
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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.
 
2 members found this post helpful.
Old 09-02-2014, 09:00 PM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
When it works it seems to work...

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.
 
4 members found this post helpful.
Old 09-02-2014, 09:06 PM   #10
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
But according to Poettering, it will end the "fragmentation of Linux."
 
Old 09-02-2014, 09:38 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.

Last edited by ReaperX7; 09-02-2014 at 09:45 PM.
 
1 members found this post helpful.
Old 09-02-2014, 10:13 PM   #12
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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.
 
Old 09-02-2014, 10:24 PM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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?
 
Old 09-02-2014, 11:11 PM   #14
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
interesting inputs. thanks for the heads up.
 
Old 09-02-2014, 11:45 PM   #15
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
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.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I know if my distro is using systemd annonyxxxx Linux - General 4 05-25-2013 06:21 AM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM
Desktop Distro to avoid mono, transition from Debian YaHu Linux - Desktop 9 06-16-2009 10:17 PM
distro's to avoid-flaws darthaxul Linux - General 5 09-28-2008 05:48 AM
Are where some linux distro i shut avoid suse91pro Linux - Security 11 09-18-2005 11:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration