Man page - nix3-store-gc(1)

Packages contains this manual

Manual

nix3-store-gc

Name
Synopsis
Examples
Description
Options
Logging-related options
Miscellaneous global options

Warning
This program is experimental and its interface is subject to change.

Name

nix store gc - perform garbage collection on a Nix store

Synopsis

nix store gc [ option …]

Examples

β€’

Delete unreachable paths in the Nix store:

# nix store gc

β€’

Delete up to 1 gigabyte of garbage:

# nix store gc --max 1G

Description

This command deletes unreachable paths in the Nix store.

Options

β€’

--dry-run

Show what this command would do without doing it.

β€’

--max n

Stop after freeing n bytes of disk space.

Logging-related options

β€’

--debug

Set the logging verbosity level to β€˜debug’.

β€’

--log-format format

Set the format of log output; one of raw, internal-json, bar or bar-with-logs.

β€’

--print-build-logs / -L

Print full build logs on standard error.

β€’

--quiet

Decrease the logging verbosity level.

β€’

--verbose / -v

Increase the logging verbosity level.

Miscellaneous global options

β€’

--help

Show usage information.

β€’

--offline

Disable substituters and consider all previously downloaded files up-to-date.

β€’

--option name value

Set the Nix configuration setting name to value (overriding nix.conf).

β€’

--refresh

Consider all previously downloaded files out-of-date.

β€’

--version

Show version information.

Note

See man nix.conf for overriding configuration settings with command line flags.