LinuxCommandLibrary

nix-channel

manages Nix channel subscriptions

TLDR

List channels

$ nix-channel --list
copy
Add channel
$ nix-channel --add [https://nixos.org/channels/nixpkgs-unstable] [nixpkgs]
copy
Update channels
$ nix-channel --update
copy
Remove channel
$ nix-channel --remove [nixpkgs]
copy
Update specific channel
$ nix-channel --update [nixpkgs]
copy
Show generation
$ nix-channel --list-generations
copy

SYNOPSIS

nix-channel [options]

DESCRIPTION

nix-channel manages Nix channel subscriptions. Channels provide package sets.
The tool handles channel URLs. Alternative to flakes for package sources.

PARAMETERS

--list

List subscribed channels.
--add URL NAME
Subscribe to channel.
--update [NAME]
Update channels.
--remove NAME
Unsubscribe from channel.
--list-generations
Show channel generations.
--help
Display help information.

CAVEATS

Legacy approach. Consider flakes instead. Per-user channels.

HISTORY

nix-channel is the traditional Nix way of subscribing to package repositories.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community