Talk:How to remove systemd from a Debian Stretch installation

From Without Systemd
Jump to: navigation, search

implications (consequences)

>>> the following command removes packages that depend on systemd itself or things like libpam-systemd
>>> apt-get remove --purge --auto-remove systemd

It would be enlightening to see, posted here, a list of all marked-as-dependent debian packages which wind up being removed as a consequence of this purge command.

...and NOW WHAT ? ? ?
As is, the "how to" page leaves the reader hanging.
Anyone who applies the incomplete howto instructions will likely wind up with a non-usable system (bootable, but certainly not satisfactorily usable).
The howto page should at least provide links to alternative repositories containing systemd-free replacements for critical packages.

The following was removed from the wiki page (comment states "Cosmetic"?), so I'm mentioning it here instead. It seems like useful info:

Prevent apt from installing systemd-related packages in the future:
echo -e 'Package: *systemd*\nPin: release *\nPin-Priority: -1\n' > /etc/apt/preferences.d/systemd

CrayXMP --- I did not remove anything !
I created another headline (adding the word 'variant') following the original. The apt preference you are referring to has never been erased but remains above [[1]]. I removed this line on the variant I wrote because it was already there, thus the use of the word 'cosmetic'.

Oops, apologies for my confusion I see it there now. -- kriv
Phew, I will do '/etc/init.d/kriv restart' next time! -- crayxmp :-)

        • New POST:

After following instructions and getting to removing systemd, here's everything that will have to go in addition!??:

[email protected]:/# apt-get remove --purge --auto-remove systemd

Reading package lists...

Building dependency tree...

Reading state information...

The following packages will be REMOVED:

 accountsservice* albatross-gtk-theme* ant* ant-optional*
 blackbird-gtk-theme* bluebird-gtk-theme* ca-certificates-java*
 coinor-libcbc3* coinor-libcgl1* coinor-libclp1* coinor-libcoinmp1v5*
 coinor-libcoinutils3v5* coinor-libosi1v5* colord* colord-data* cpufrequtils*
 dbus-user-session* default-java-plugin* default-jre* default-jre-headless*
 dmz-cursor-theme* docbook-xml* eom* eom-common* espeak-ng-data*
 ffmpegthumbnailer* fonts-crosextra-caladea* fonts-crosextra-carlito*
 fonts-linuxlibertine* fonts-opensymbol* fonts-sil-gentium*
 fonts-sil-gentium-basic* galculator* gcj-6-jre-lib* gir1.2-atspi-2.0*
 gir1.2-mate-panel* gir1.2-wnck-3.0* gnome-accessibility-themes* gnome-orca*
 gnome-themes-standard* gnome-themes-standard-data* greybird-gtk-theme*
 gtk2-engines* gtk2-engines-murrine* gtk2-engines-pixbuf* hplip* hplip-data*
 hyphen-en-us* icedtea-8-plugin* icedtea-netx* icedtea-netx-common*
 java-common* libabw-0.1-1* libaccountsservice0* libao-common* libao4*
 libapache-poi-java* libapache-pom-java* libart-2.0-2* libatk-adaptor*
 libatk-wrapper-java* libatk-wrapper-java-jni* libatkmm-1.6-1v5* libaudio2*
 libbase-java* libbcmail-java* libbcpkix-java* libbcprov-java* libbluetooth3*
 libboost-date-time1.62.0* libboost-filesystem1.62.0*
 libboost-iostreams1.62.0* libboost-system1.62.0* libbrlapi0.6* libbsh-java*
 libcairomm-1.0-1v5* libcdr-0.1-1* libclucene-contribs1v5*
 libclucene-core1v5* libcmis-0.5-5v5* libcolorhug2* libcommons-codec-java*
 libcommons-collections3-java* libcommons-logging-java*
 libcommons-parent-java* libcpufreq0* libdom4j-java* libdotconf0*
 libe-book-0.1-1* libehcache-java* libeot0* libept1.5.0* libespeak-ng1*
 libetonyek-0.1-1* libexttextcat-2.0-0* libexttextcat-data*
 libffmpegthumbnailer4v5* libflute-java* libfonts-java* libformula-java*
 libfreehand-0.1-1* libgcj-bc* libgcj-common* libgcj17* libgif7*
 libglib2.0-bin* libglibmm-2.4-1v5* libgltf-0.0-0v5* libgtkmm-3.0-1v5*
 libgusb2* libhsqldb1.8.0-java* libisorelax-java* libitext-java* libiw30*
 libjaxen-java* libjcommon-java* libjdom1-java* liblangtag-common*
 liblangtag1* liblayout-java* liblightdm-gobject-1-0* libloader-java*
 liblog4j1.2-java* libmail-java* libmate-menu2* libmate-panel-applet-4-1*
 libmate-slab0* libmate-window-settings1* libmatedict6* libmatekbd-common*
 libmatekbd4* libmatemixer-common* libmatemixer0* libmateweather-common*
 libmateweather1* libmhash2* libmspub-0.1-1* libmsv-java* libmwaw-0.3-3*
 libmythes-1.2-0* libneon27-gnutls* libodfgen-0.1-1* liborcus-0.11-0*
 libpagemaker-0.0-0* libpam-systemd* libpangomm-1.4-1v5* libpcaudio0*
 libpcsclite1* libpentaho-reporting-flow-engine-java* libpixie-java*
 libpolkit-backend-1-0* libpq5* libpulse-mainloop-glib0* libpython3.5*
 libraptor2-0* librarian0* librasqal3* librdf0* librelaxng-datatype-java*
 libreoffice* libreoffice-avmedia-backend-gstreamer* libreoffice-base*
 libreoffice-base-core* libreoffice-base-drivers* libreoffice-calc*
 libreoffice-common* libreoffice-core* libreoffice-draw* libreoffice-gtk3*
 libreoffice-help-en-us* libreoffice-impress* libreoffice-java-common*
 libreoffice-librelogo* libreoffice-math* libreoffice-nlpsolver*
 libreoffice-ogltrans* libreoffice-pdfimport* libreoffice-report-builder*
 libreoffice-report-builder-bin* libreoffice-script-provider-bsh*
 libreoffice-script-provider-js* libreoffice-script-provider-python*
 libreoffice-sdbc-hsqldb* libreoffice-sdbc-postgresql*
 libreoffice-style-galaxy* libreoffice-style-tango*
 libreoffice-wiki-publisher* libreoffice-writer* librepository-java*
 librevenge-0.0-0* libsac-java* libsac-java-gcj* libsane-hpaio*
 libsaxonhe-java* libserializer-java* libservlet3.1-java* libsigc++-2.0-0v5*
 libsonic0* libspeechd2* libvisio-0.1-1* libwebpdemux2* libwpd-0.10-10*
 libwpg-0.3-3* libwps-0.4-4* libxerces2-java* libxklavier16*
 libxml-commons-external-java* libxml-commons-resolver1.1-java* libxml-java*
 libxmlbeans-java* libxom-java* libxpp2-java* libxpp3-java* libyajl2*
 lightdm* lightdm-gtk-greeter* lp-solve* mate-applets* mate-applets-common*
 mate-backgrounds* mate-control-center* mate-control-center-common*
 mate-desktop-environment* mate-desktop-environment-core*
 mate-icon-theme-faenza* mate-media* mate-media-common* mate-menus*
 mate-panel* mate-panel-common* mate-polkit* mate-polkit-common*
 mate-power-manager* mate-power-manager-common* mate-screensaver*
 mate-screensaver-common* mate-settings-daemon* mate-settings-daemon-common*
 mate-system-monitor* mate-system-monitor-common* mate-themes* mate-utils*
 mate-utils-common* menu* menu-xdg* murrine-themes* mythes-en-us*
 openjdk-8-jre* openjdk-8-jre-headless* pluma* pluma-common* policykit-1*
 printer-driver-postscript-hp* python-mate-menu* python3-brlapi*
 python3-cairo* python3-dbus* python3-louis* python3-pexpect* python3-pil*
 python3-ptyprocess* python3-pyatspi* python3-renderpm* python3-reportlab*
 python3-reportlab-accel* python3-speechd* python3-uno* python3-xdg*
 rarian-compat* sgml-data* sound-theme-freedesktop* speech-dispatcher*
 speech-dispatcher-audio-plugins* speech-dispatcher-espeak-ng* synaptic*
 systemd* systemd-shim* task-mate-desktop* uno-libs3* ure* xbrlapi*

0 upgraded, 0 newly installed, 281 to remove and 10 not upgraded. After this operation, 1,024 MB disk space will be freed. Do you want to continue? [Y/n]

I notice others are able to remove systemd without taking out half the system. Any ideas?

Btw... I'm using QEMU with snapshots on this stretch install so no worries if I screw anything up. Suggestions???


Okay, I was able to install sysvinit and remove systemd cleanly without taking out the desktop:

apt-get install sysvinit-core


echo -e 'deb nosystemd-stretch main' > /etc/apt/sources.list.d/nosystemd.list

echo -e 'Package: *\nPin: origin Pin-Priority: 1100\n' > /etc/apt/preferences.d/nosystemd

echo -e 'Package: libsystemd0\nPin: version *\nPin-Priority: 500\n' >> /etc/apt/preferences.d/nosystemd

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

apt-get update

apt-get install kilobyte-archive-keyring

apt-get update

apt-get install udisks2 libudisks2-0 cgmanager libcgmanager0

apt-get install libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 policykit-1

apt-get remove --purge --auto-remove systemd


Going to experiment a bit more. Currently, I'm having issues with hitting TAB key after entering my login name. There is a 1-2 second delay which is associated with ldap ('group: files ldap' in my nsswitch.conf). I don't have this issue with Devuan ASCII. This started happening right after installing sysvinit-core and 'reboot'. Nonetheless, all my issues with kerberos/ldap/nfs4 are gone. Just like on Devuan. Systemd has literally taken months out of my life and I'm so glad we have these alternatives.

Personal tools