aboutsummaryrefslogtreecommitdiff
path: root/src/nix/profile-install.md
blob: 4c0f82c09e584cbeffa1c5319810ab67004dbb25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
R""(

# Examples

* Install a package from Nixpkgs:

  ```console
  # nix profile install nixpkgs#hello
  ```

* Install a package from a specific branch of Nixpkgs:

  ```console
  # nix profile install nixpkgs/release-20.09#hello
  ```

* Install a package from a specific revision of Nixpkgs:

  ```console
  # nix profile install nixpkgs/d73407e8e6002646acfdef0e39ace088bacc83da#hello
  ```

* Install a specific output of a package:

  ```console
  # nix profile install nixpkgs#bash^man
  ```


# Description

This command adds [*installables*](./nix.md#installables) to a Nix profile.

)""