nix-super/src/nix/profile-rollback.md

27 lines
560 B
Markdown
Raw Normal View History

2021-09-14 20:05:28 +03:00
R""(
# Examples
* Roll back your default profile to the previous version:
```console
# nix profile rollback
2021-09-14 20:57:45 +03:00
switching profile from version 519 to 518
2021-09-14 20:05:28 +03:00
```
* Switch your default profile to version 510:
```console
# nix profile rollback --to 510
2021-09-14 20:57:45 +03:00
switching profile from version 518 to 510
2021-09-14 20:05:28 +03:00
```
# Description
This command switches a profile to the most recent version older
than the currently active version, or if `--to` *N* is given, to
version *N* of the profile. To see the available versions of a
profile, use `nix profile history`.
)""