2023-03-23 17:27:41 +02:00
|
|
|
# Name
|
|
|
|
|
|
|
|
`nix-env --uninstall` - remove packages from user environment
|
|
|
|
|
|
|
|
# Synopsis
|
|
|
|
|
|
|
|
`nix-env` {`--uninstall` | `-e`} *drvnames…*
|
|
|
|
|
|
|
|
# Description
|
|
|
|
|
|
|
|
The uninstall operation creates a new user environment, based on the
|
|
|
|
current generation of the active profile, from which the store paths
|
|
|
|
designated by the symbolic names *drvnames* are removed.
|
|
|
|
|
|
|
|
{{#include ./opt-common.md}}
|
|
|
|
|
|
|
|
{{#include ../opt-common.md}}
|
|
|
|
|
|
|
|
{{#include ./env-common.md}}
|
|
|
|
|
|
|
|
{{#include ../env-common.md}}
|
|
|
|
|
|
|
|
# Examples
|
|
|
|
|
|
|
|
```console
|
|
|
|
$ nix-env --uninstall gcc
|
2023-04-30 16:52:38 +03:00
|
|
|
$ nix-env --uninstall '.*' (remove everything)
|
2023-03-23 17:27:41 +02:00
|
|
|
```
|