How to remove systemd from a Debian jessie/sid installation

From Without Systemd
(Difference between revisions)
Jump to: navigation, search
m (You can use this to prevent systemd related junk into kubuntu 14.04)
Line 6: Line 6:
 
Prevent apt from installing systemd packages in the future.
 
Prevent apt from installing systemd packages in the future.
 
# echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferences.d/systemd
 
# echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferences.d/systemd
  +
Prevent apt from installing any systemd like packages in the future (note the star before and after systemd)
  +
# echo -e 'Package: *systemd*\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferences.d/systemd

Revision as of 07:03, 9 April 2015

First install the SysV init packages

# apt-get install sysvinit-core sysvinit sysvinit-utils

Then reboot your machine and remove all of the systemd packages. BE AWARE that the following command removes packages that depend on systemd itself or things like libpam-systemd!

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

Prevent apt from installing systemd packages in the future.

# echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferences.d/systemd

Prevent apt from installing any systemd like packages in the future (note the star before and after systemd)

# echo -e 'Package: *systemd*\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferences.d/systemd
Personal tools