Skip to content

Commit 10660c0

Browse files
committed
doc: move Guix uninstall instructions to INSTALL.md
Also drop unused links.
1 parent 68fab72 commit 10660c0

File tree

2 files changed

+36
-49
lines changed

2 files changed

+36
-49
lines changed

contrib/guix/INSTALL.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,3 +821,39 @@ Please see the following links for more details:
821821
[docker/volumes]: https://docs.docker.com/storage/volumes/
822822
[docker/bind-mnt]: https://docs.docker.com/storage/bind-mounts/
823823
[docker/tmpfs]: https://docs.docker.com/storage/tmpfs/
824+
825+
# Purging/Uninstalling Guix
826+
827+
In the extraordinarily rare case where you messed up your Guix installation in
828+
an irreversible way, you may want to completely purge Guix from your system and
829+
start over.
830+
831+
1. Uninstall Guix itself according to the way you installed it (e.g. `sudo apt
832+
purge guix` for Ubuntu packaging, `sudo make uninstall` for a build from source).
833+
2. Remove all build users and groups
834+
835+
You may check for relevant users and groups using:
836+
837+
```
838+
getent passwd | grep guix
839+
getent group | grep guix
840+
```
841+
842+
Then, you may remove users and groups using:
843+
844+
```
845+
sudo userdel <user>
846+
sudo groupdel <group>
847+
```
848+
849+
3. Remove all possible Guix-related directories
850+
- `/var/guix/`
851+
- `/var/log/guix/`
852+
- `/gnu/`
853+
- `/etc/guix/`
854+
- `/home/*/.config/guix/`
855+
- `/home/*/.cache/guix/`
856+
- `/home/*/.guix-profile/`
857+
- `/root/.config/guix/`
858+
- `/root/.cache/guix/`
859+
- `/root/.guix-profile/`

contrib/guix/README.md

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -430,55 +430,6 @@ used.
430430
If you start `guix-daemon` using an init script, you can edit said script to
431431
supply this flag.
432432

433-
434-
# Purging/Uninstalling Guix
435-
436-
In the extraordinarily rare case where you messed up your Guix installation in
437-
an irreversible way, you may want to completely purge Guix from your system and
438-
start over.
439-
440-
1. Uninstall Guix itself according to the way you installed it (e.g. `sudo apt
441-
purge guix` for Ubuntu packaging, `sudo make uninstall` for a build from source).
442-
2. Remove all build users and groups
443-
444-
You may check for relevant users and groups using:
445-
446-
```
447-
getent passwd | grep guix
448-
getent group | grep guix
449-
```
450-
451-
Then, you may remove users and groups using:
452-
453-
```
454-
sudo userdel <user>
455-
sudo groupdel <group>
456-
```
457-
458-
3. Remove all possible Guix-related directories
459-
- `/var/guix/`
460-
- `/var/log/guix/`
461-
- `/gnu/`
462-
- `/etc/guix/`
463-
- `/home/*/.config/guix/`
464-
- `/home/*/.cache/guix/`
465-
- `/home/*/.guix-profile/`
466-
- `/root/.config/guix/`
467-
- `/root/.cache/guix/`
468-
- `/root/.guix-profile/`
469-
470433
[b17e]: https://bootstrappable.org/
471434
[r12e/source-date-epoch]: https://reproducible-builds.org/docs/source-date-epoch/
472-
473-
[guix/install.sh]: https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
474-
[guix/bin-install]: https://www.gnu.org/software/guix/manual/en/html_node/Binary-Installation.html
475-
[guix/env-setup]: https://www.gnu.org/software/guix/manual/en/html_node/Build-Environment-Setup.html
476-
[guix/substitutes]: https://www.gnu.org/software/guix/manual/en/html_node/Substitutes.html
477-
[guix/substitute-server-auth]: https://www.gnu.org/software/guix/manual/en/html_node/Substitute-Server-Authorization.html
478-
[guix/time-machine]: https://guix.gnu.org/manual/en/html_node/Invoking-guix-time_002dmachine.html
479-
480-
[debian/guix-bullseye]: https://packages.debian.org/bullseye/guix
481-
[ubuntu/guix-hirsute]: https://packages.ubuntu.com/hirsute/guix
482-
[fanquake/guix-docker]: https://github.com/fanquake/core-review/tree/master/guix
483-
484435
[env-vars-list]: #recognized-environment-variables

0 commit comments

Comments
 (0)