7

I installed Nix package manager, and now I would like to remove it completely.

How can I do it?

7

I asked myself the same question and searched the file system for Nix-related files. That's what I found:

# as user, remove:
rm -r ~/.nix-channels ~/.nix-defexpr ~/.nix-profile
# as root (sudo), remove:
sudo rm -r /nix
# edit the file ~/.profile and remove the line containing "added by Nix installer"

Not sure if I missed some files or directories. Also, I did not remove it myself, so be careful (and backup your data!) when removing stuff with sudo.

  • 1
    I don't think this would get everything, Doesn't the Nix install create users and run a daemon as well? – James McMahon Jan 22 '18 at 1:48
  • I would never have thought that the package manager can not delete itself normally! Even brew can. I cry. And will never install Nix again. – DenisKolodin Jul 19 at 13:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .