mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 14:02:42 +01:00
Documentation on "classic" commands with many sub-commands are notoriously hard to discover due to lack of overview and anchor links. Additionally the information on common options and environment variables is not accessible offline in man pages, and therefore often overlooked by readers. With this change, each sub-command of nix-store and nix-env gets its own page in the manual (listed in the table of contents), and each own man page. Also, man pages for each subcommand now (again) list common options and environment variables. While this makes each page quite long and some common parameters don't apply, this should still make it easier to navigate as that additional information was not accessible on the command line at all. It is now possible to run 'nix-store --<subcommand> --help` to display help pages for the given subcommand. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
29 lines
646 B
Markdown
29 lines
646 B
Markdown
# Name
|
||
|
||
`nix-store --verify-path` - check path contents against Nix database
|
||
|
||
## Synopsis
|
||
|
||
`nix-store` `--verify-path` *paths…*
|
||
|
||
## Description
|
||
|
||
The operation `--verify-path` compares the contents of the given store
|
||
paths to their cryptographic hashes stored in Nix’s database. For every
|
||
changed path, it prints a warning message. The exit status is 0 if no
|
||
path has changed, and 1 otherwise.
|
||
|
||
{{#include ./opt-common.md}}
|
||
|
||
{{#include ../opt-common.md}}
|
||
|
||
{{#include ../env-common.md}}
|
||
|
||
## Example
|
||
|
||
To verify the integrity of the `svn` command and all its dependencies:
|
||
|
||
```console
|
||
$ nix-store --verify-path $(nix-store -qR $(which svn))
|
||
```
|
||
|