Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 39 additions & 33 deletions content/en/lotus/install/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,52 +25,58 @@ Building Lotus from source allows you to strictly configure how Lotus runs and h

1. Install Lotus dependencies:

Arch:

```shell
sudo pacman -Syu hwloc
```

Ubuntu/Debian:

```shell
sudo apt install -y hwloc
```

Fedora:

```shell
sudo dnf -y install hwloc
```

OpenSUSE:

```shell
sudo zypper in hwloc
```
Arch:

```shell
sudo pacman -Syu hwloc
```

Ubuntu/Debian:

```shell
sudo apt install -y hwloc
```

Fedora:

```shell
sudo dnf -y install hwloc
```

OpenSUSE:

```shell
sudo zypper in hwloc
```

Amazon Linux 2:

```shell
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; sudo yum install -y hwloc-devel
```

Amazon Linux 2:
2. Download the latest Linux bundle from the [Lotus GitHub releases page](https://github.com/filecoin-project/lotus/releases/latest):

```shell
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; sudo yum install -y hwloc-devel
```
```shell
wget https://github.com/filecoin-project/lotus/releases/download/v{{< version >}}/lotus_v{{< version >}}_linux_amd64_v1.tar.gz
```

1. Download the latest Linux bundle from the [Lotus GitHub releases page](https://github.com/filecoin-project/lotus/releases/latest):
3. Extract tar -xvf archive.tar.gz executable:

```shell
wget https://github.com/filecoin-project/lotus/releases/download/v{{< version >}}/lotus_v{{< version >}}_linux_amd64_V1.tar.gz
tar -xvf lotus_v{{< version >}}_linux_amd64_v1.tar.gz
```

2. Extract tar -xvf archive.tar.gz executable:
4. Move the `lotus` binary to `/usr/local/bin`:

```shell
tar -xvf lotus_v{{< version >}}_linux_amd64.tar.gz
sudo mv lotus_{{< version >}}_linux_amd64/lotus /usr/local/bin/lotus
```

3. Move the `lotus` binary to `/usr/local/bin`:
5. Set execute permissions on the binary:

```shell
sudo mv lotus_{{< version >}}_linux_amd64/lotus /usr/local/bin/lotus
chmod ugo+x /usr/local/bin/lotus
```

## Building from source
Expand Down
Loading