Uninstall Flox
While we are sad we see you uninstalling flox
we would like thank you
for giving flox
a try.
As we try to improve flox
we really appreciate any feedback, especially
where we failed. We like to know what was not working or where could we do
a better job. Please reach us via
discourse or via
email.
Here's how to completely remove flox
from your system.
The following commands will completely remove Nix and the contents of /nix/*
from the system.
Be sure to back up the system and/or extract any important Nix-related files and packages before continuing.
-
Ensure no running processes are using
/nix
. -
Run:
Regardless of the current state, brew can be used to perform a full clean up:
We recommend rebooting your system after uninstalling Flox.
The following commands will completely remove Nix and the contents of /nix/*
from the system.
Be sure to back up the system and/or extract any important Nix-related files and packages before continuing.
You may be asked if the terminal has permission to modify contents of the disk.
Run:
To remove all traces of flox including user preferences uninstall with:
In the case of recovering a partial install, a force and zap can help:
We recommend rebooting your system after uninstalling Flox.
For use on Debian, Ubuntu, and other Debian-based distributions.
The following command will completely remove Nix and the contents of /nix/*
from the system.
Be sure to back up the system and/or extract any important Nix-related files and packages before continuing.
We recommend rebooting your system after uninstalling Flox.
For use on RedHat, CentOS, Amazon Linux, and other RPM-based distributions.
The following command will completely remove Nix and the contents of /nix/*
from the system.
Be sure to back up the system and/or extract any important Nix-related files and packages before continuing.
We recommend rebooting your system after uninstalling Flox.
Output on success:
$ sudo yum remove flox
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management.
You can use subscription-manager to register.
Dependencies resolved.
======================================================================
Package Architecture Version Repository Size
======================================================================
Removing:
flox x86_64 1.4.3-1625910780 @@System 109 M
Transaction Summary
======================================================================
Remove 1 Package
Freed space: 109 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: flox-1.4.3-1625910780.x86_64 1/1
floxadm uninstall complete
Erasing : flox-1.4.3-1625910780.x86_64 1/1
Running scriptlet: flox-1.4.3-1625910780.x86_64 1/1
Verifying : flox-1.4.3-1625910780.x86_64 1/1
Installed products updated.
Removed:
flox-1.4.3-1625910780.x86_64
Complete!
If you've installed flox to the system-wide default
profile
sudo -H nix profile remove \
'.*flox' \
--profile /nix/var/nix/profiles/default \
--experimental-features "nix-command flakes"
Or, if you've installed flox to your own personal profile
Or, if you've declared Flox using a flake, remove the Flake
Please follow the instructions provided on either the Debian or RPM tab (whichever matches the existing Linux Distribution installed with your WSL) to uninstall Flox.