Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
magick93 committed Jan 12, 2025
1 parent c53a588 commit 0efbbb2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions book/src/installation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Anchor Installation Guide

This guide provides step-by-step instructions for installing **Anchor**.
Expand All @@ -10,7 +11,8 @@ This guide provides step-by-step instructions for installing **Anchor**.
2. Download the appropriate binary for your operating system.
3. Extract the file if necessary and move the binary to a location in your `PATH` (e.g., `/usr/local/bin/`).

### Example:
### Example

```bash
wget https://github.com/sigp/anchor/releases/download/<version>/anchor-<platform>.tar.gz

Expand All @@ -21,6 +23,7 @@ sudo mv anchor /usr/local/bin/
```

Verify the installation:

```bash
anchor --version
```
Expand All @@ -30,39 +33,42 @@ anchor --version
## 2. Run Anchor Using Docker

1. Pull the latest Anchor Docker image:

```bash
docker pull sigp/anchor:latest
```

2. Run the Anchor container:

```bash
docker run --rm -it sigp/anchor:latest --help
```



## 3. Clone and Build Locally

1. Clone the Anchor repository:

```bash
git clone https://github.com/sigp/anchor.git
cd anchor
```

2. Build the Anchor binary:

```bash
cargo build --release
```

The binary will be located in `./target/release/`.

3. Move the binary to a location in your `PATH`:

```bash
sudo mv target/release/anchor /usr/local/bin/
```

Verify the installation:

```bash
anchor --version
```



0 comments on commit 0efbbb2

Please sign in to comment.