diff options
author | Liu Xiaoyi <circuitcoder0@gmail.com> | 2022-11-20 20:04:22 +0800 |
---|---|---|
committer | Liu Xiaoyi <circuitcoder0@gmail.com> | 2022-11-20 20:04:29 +0800 |
commit | cc620d961f1fa68038ef44f5947fc053708ab3ad (patch) | |
tree | 95682a00e298b6d42d5c4578a44b7cdb5ac36424 /doc | |
parent | 62960f32915909a5104f2ca3a32b25fb3cfd34c7 (diff) |
Updated uninstall guide involving systemd
Co-authored-by: sequencer <liu@jiuyang.me>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/src/installation/installing-binary.md | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/doc/manual/src/installation/installing-binary.md b/doc/manual/src/installation/installing-binary.md index 31faeadc2..1b7db59cd 100644 --- a/doc/manual/src/installation/installing-binary.md +++ b/doc/manual/src/installation/installing-binary.md @@ -88,6 +88,28 @@ extension. The installer will also create `/etc/profile.d/nix.sh`. ### Linux +To begin, if you are on Linux with systemd, remove the Nix daemon service: + +```console +sudo systemctl stop nix-daemon.socket +sudo systemctl stop nix-daemon.service +sudo systemctl disable nix-daemon.socket +sudo systemctl disable nix-daemon.service +sudo systemctl daemon-reload +``` + +Then you can remove systemd service files: + +```console +sudo rm -f /etc/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.socket +``` + +Also, the installer script uses systemd-tmpfiles (if presents) to create the socket directory. You may also want to remove the configuration for that: + +```console +sudo rm -f /etc/tmpfiles.d/nix-daemon.conf +``` + Remove files created by Nix: ```console @@ -103,16 +125,6 @@ done sudo groupdel 30000 ``` -If you are on Linux with systemd, remove the Nix daemon service: - -```console -sudo systemctl stop nix-daemon.socket -sudo systemctl stop nix-daemon.service -sudo systemctl disable nix-daemon.socket -sudo systemctl disable nix-daemon.service -sudo systemctl daemon-reload -``` - There may also be references to Nix in - `/etc/profile` |