diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-11-11 14:39:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 14:39:07 +0100 |
commit | 302ddee749f1341895b3f18c7f430dfc13171985 (patch) | |
tree | c9f26076e231f087553ddf666113a03c585ac5bc /doc/manual/src | |
parent | bb279257b3bf6a03f096dc346ad588e6faedd5fb (diff) | |
parent | 2af036e5a378c711d8e58d01bdefe5c634c25921 (diff) |
Merge pull request #7279 from fricklerhandwerk/uninstall
add removing users to uninstall instructions
Diffstat (limited to 'doc/manual/src')
-rw-r--r-- | doc/manual/src/installation/installing-binary.md | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/doc/manual/src/installation/installing-binary.md b/doc/manual/src/installation/installing-binary.md index 2d007ca1b..31faeadc2 100644 --- a/doc/manual/src/installation/installing-binary.md +++ b/doc/manual/src/installation/installing-binary.md @@ -88,10 +88,24 @@ extension. The installer will also create `/etc/profile.d/nix.sh`. ### Linux +Remove files created by Nix: + +```console +sudo rm -rf /nix /etc/nix /etc/profile/nix.sh ~root/.nix-profile ~root/.nix-defexpr ~root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels +``` + +Remove build users and their group: + ```console -sudo rm -rf /etc/profile/nix.sh /etc/nix /nix ~root/.nix-profile ~root/.nix-defexpr ~root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels +for i in $(seq 30001 30032); do + sudo userdel $i +done +sudo groupdel 30000 +``` + +If you are on Linux with systemd, remove the Nix daemon service: -# If you are on Linux with systemd, you will need to run: +```console sudo systemctl stop nix-daemon.socket sudo systemctl stop nix-daemon.service sudo systemctl disable nix-daemon.socket @@ -99,8 +113,13 @@ sudo systemctl disable nix-daemon.service sudo systemctl daemon-reload ``` -There may also be references to Nix in `/etc/profile`, `/etc/bashrc`, -and `/etc/zshrc` which you may remove. +There may also be references to Nix in + +- `/etc/profile` +- `/etc/bashrc` +- `/etc/zshrc` + +which you may remove. ### macOS |