aboutsummaryrefslogtreecommitdiff
path: root/docs/luarocks_install.md
blob: f3eddbd643b23a340b71c952274df6d2b5329684 (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
35
36
37
# luarocks install

Install a rock.

## Usage

`luarocks install [--keep] [--only-deps] {<rock> | <name> [<version>]}`

Argument may be the name of a rock to be fetched from a server, with optional
version, or the direct URL or filename of a rockspec. In case of more than one
rock matching the request, the `install` command favors binary rocks.

Unless `--keep` is passed, other versions of the rock are removed after
installing the new one.

If `--only-deps` is passed, the rock itself is not installed, but its
dependencies are.

## Examples

Installing a rock:

```
luarocks install luasocket
```

Installing a specific version of a rock:

```
luarocks install luasocket 3.0rc1
```

Installing a rock ignoring its dependencies:

```
luarocks install busted --deps-mode=none
```