mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
e.g. nix-env -e subversion => nix-env --uninstall subversion The aim is to make the documentation less cryptic for newcomers and the long options are more self-documenting. The change was made with the following script: <https://github.com/aschmolck/convert-short-nix-opts-to-long-ones> and sanity checked visually.
28 lines
564 B
Markdown
28 lines
564 B
Markdown
# 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
|
|
$ nix-env --uninstall '.*' (remove everything)
|
|
```
|