aboutsummaryrefslogtreecommitdiff
path: root/src/nix/profile-upgrade.md
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-05-01 18:51:16 -0600
committerQyriad <qyriad@qyriad.me>2024-05-02 12:02:28 -0600
commitf88423813f042cf40d9207409cd05cf4b75d87a0 (patch)
treed02a8cdc30d1978f79b8f98ba199225551ece77e /src/nix/profile-upgrade.md
parent1425aa0b7cd0d3477589f75bea4fb9c74e057fed (diff)
nix3-profile: allow using human-readable names to select packages
These names are parsed from the URL provided for that package Based off of commit 257b768436a0e8ab7887f9b790c5b92a7fe51ef5 Upstream-PR: https://github.com/NixOS/nix/pull/8678 Co-authored-by: Felix Uhl <felix.uhl@outlook.com> Change-Id: I76d5f9cfb11d3d2915b3dd1db21d7bb49e91f4fb
Diffstat (limited to 'src/nix/profile-upgrade.md')
-rw-r--r--src/nix/profile-upgrade.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nix/profile-upgrade.md b/src/nix/profile-upgrade.md
index 39cca428b..b13cb66bb 100644
--- a/src/nix/profile-upgrade.md
+++ b/src/nix/profile-upgrade.md
@@ -9,18 +9,19 @@ R""(
# nix profile upgrade '.*'
```
-* Upgrade a specific package:
+* Upgrade a specific package by name:
+
+ ```console
+ # nix profile upgrade hello
+ ```
```console
# nix profile upgrade packages.x86_64-linux.hello
```
-* Upgrade a specific profile element by number:
+* Upgrade a specific package by index:
```console
- # nix profile list
- 0 flake:nixpkgs#legacyPackages.x86_64-linux.spotify …
-
# nix profile upgrade 0
```