Skip to content

Commit cf75b6d

Browse files
waldyriousManagoracuteenvy
authored
nix-env: tweak descriptions and add help command (#19758)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Lena Pastwa <lena@lnps.me>
1 parent a5b7b53 commit cf75b6d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pages/common/nix-env.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@
77

88
`nix-env {{[-q|--query]}}`
99

10-
- Query installed packages:
10+
- Query installed packages (`regex` is supported):
1111

12-
`nix-env {{[-q|--query]}} {{search_term}}`
12+
`nix-env {{[-q|--query]}} {{search_pattern}}`
1313

14-
- Query available packages:
14+
- Query available packages from the Nixpkgs registry:
1515

16-
`nix-env {{[-qa|--query --available]}} {{search_term}}`
16+
`nix-env {{[-qa|--query --available]}} {{search_pattern}}`
1717

18-
- Install package:
18+
- Install a package from the Nixpkgs registry:
1919

2020
`nix-env {{[-iA|--install --attr]}} nixpkgs.{{pkg_name}}`
2121

22-
- Install a package from a URL:
22+
- Install a package from a custom URL:
2323

2424
`nix-env {{[-i|--install]}} {{pkg_name}} {{[-f|--file]}} {{example.com}}`
2525

26-
- Uninstall package:
26+
- Uninstall a package:
2727

2828
`nix-env {{[-e|--uninstall]}} {{pkg_name}}`
2929

30-
- Upgrade one package:
30+
- Upgrade a package:
3131

3232
`nix-env {{[-u|--upgrade]}} {{pkg_name}}`
3333

34-
- Upgrade all packages:
34+
- Get usage help for a specific operation (`--install`, `--upgrade`, etc.):
3535

36-
`nix-env {{[-u|--upgrade]}}`
36+
`nix-env --help --{{option_name}}`

0 commit comments

Comments
 (0)