lix/src/nix/profile-install.md
2022-05-03 15:00:34 +02:00

572 B

R""(

Examples

  • Install a package from Nixpkgs:

    # nix profile install nixpkgs#hello
    
  • Install a package from a specific branch of Nixpkgs:

    # nix profile install nixpkgs/release-20.09#hello
    
  • Install a package from a specific revision of Nixpkgs:

    # nix profile install nixpkgs/d73407e8e6002646acfdef0e39ace088bacc83da#hello
    
  • Install a specific output of a package:

    # nix profile install nixpkgs#bash^man
    

Description

This command adds installables to a Nix profile.

)""