2

How can I install an Apt package, and prevent its systemd process from starting?

A similar question was asked and answered years ago, except for SysV instead of systemd.

(Installing the package, and stopping its systemd service isn't a good enough solution.)

Neil
  • 482

1 Answers1

1

You can do this by running only the unpack part of the installation

 apt-get download <package>
 sudo dpkg --unpack <package>*.deb

You could then edit the packages systemd config so it cannot be started

So you dont avoid other parts of the setup you will need to finish it by running

sudo dpkg --configure <package>

This might error when it tries to start the systems service depending on how you disabled it and how the service works.

Amias
  • 5,359