mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 04:02:09 +02:00

* Nix: update and add documentation for nix subcommands Updates the documentation on the new unstable Nix command & subcommands, and adds a separate page for the Classic Nix commands. --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: axtloss <axtlos@getcryst.al> Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>
836 B
836 B
nix profile
Install, update and remove packages from Nix profiles. More information: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-profile.html.
- Install some packages from nixpkgs into the default profile:
nix profile install {{nixpkgs#pkg1 nixpkgs#pkg2 ...}}
- Install a package from a flake on GitHub into a custom profile:
nix profile install {{github:owner/repo/pkg}} --profile {{./path/to/directory}}
- List packages currently installed in the default profile:
nix profile list
- Remove a package installed from nixpkgs from the default profile, by name:
nix profile remove {{legacyPackages.x86_64-linux.pkg}}
- Upgrade packages in the default to the latest available versions:
nix profile upgrade
- Rollback (cancel) the latest action on the default profile:
nix profile rollback