Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To uninstall nix you will need to do the following things: #5152

Open
Kaleb47 opened this issue Aug 19, 2021 · 5 comments
Open

To uninstall nix you will need to do the following things: #5152

Kaleb47 opened this issue Aug 19, 2021 · 5 comments

Comments

@Kaleb47
Copy link

Kaleb47 commented Aug 19, 2021

I tried to follow the advice below and I received this...

rm: /nix: Read-only file system

To uninstall nix you will need to do the following things:

  • remove the . "$HOME/.nix-profile/etc/profile.d/nix.sh" line in your ~/.profile or ~/.bash_profile
  • rm -rf $HOME/{.nix-channels,.nix-defexpr,.nix-profile,.config/nixpkgs}
  • sudo rm -rf /nix
    On a multi-user install, also remove all the nixbld[0-9] users

Originally posted by @zimbatm in #1402 (comment)

@benkeil
Copy link

benkeil commented Jan 20, 2022

I guess there is missing a lot. what about the created volumes, launch daemon, files in /etc, ...?

@sontek
Copy link

sontek commented Feb 8, 2022

Yeah, I'd like to see a supported uninstaller. I don't mind installing with a bash script if some removal steps are well defined. The whole reason people choose to use package managers like homebrew for pulling in tooling is so they have the option to clean it out if they'd like.

Can you please provide an uninstall option similar to the installer?

@benkeil
Copy link

benkeil commented Feb 8, 2022

Actually if you have installed nix and want to install it again, it will perform some uninstall steps before it install again. It should not be that complicated to write a proper uninstall script or whatever...

@sontek
Copy link

sontek commented Feb 8, 2022

Yeah, what would be amazing. Especially for recommending it to friends and family. Feels scary to "try" nix when you can't get rid of it

@annymosse
Copy link

Actually I'm planning to remove uninstall it only coz it installed "32" new users!!!, what the hell for all of these users need!!!???.

@stale stale bot added the stale label Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants