Skip to content

Commit c86314e

Browse files
authored
Merge pull request #1810 from AkihiroSuda/docs-installation-tabpane
docs: installation: use tabpane
2 parents 4d0fa29 + 36da539 commit c86314e

File tree

1 file changed

+33
-11
lines changed
  • website/content/en/docs/Installation

1 file changed

+33
-11
lines changed

website/content/en/docs/Installation/_index.md

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,38 @@ weight: 1
55
> **NOTE**
66
> Lima is not regularly tested on ARM Mac (due to lack of CI).
77
8-
## Package Manager
8+
Prerequisite:
99

10-
### Homebrew
10+
- QEMU 7.0 or later (Required, only if QEMU driver is used)
1111

12-
Homebrew can be used to install lima on macOS and Linux.
12+
{{< tabpane text=true >}}
1313

14-
```console
14+
{{% tab header="Homebrew" %}}
15+
```bash
1516
brew install lima
1617
```
1718

18-
[Homebrew package](https://github.com/Homebrew/homebrew-core/blob/master/Formula/l/lima.rb) is available here.
19+
Homebrew formular is available [here](https://github.com/Homebrew/homebrew-core/blob/master/Formula/l/lima.rb).
20+
Supports macOS and Linux.
21+
{{% /tab %}}
1922

20-
## Manual installation
23+
{{% tab header="MacPorts" %}}
24+
```bash
25+
sudo port install lima
26+
```
2127

22-
### Prerequisite
28+
Port: <https://ports.macports.org/port/lima/>
29+
{{% /tab %}}
2330

24-
- QEMU 7.0 or later (Required, only if QEMU driver is used)
31+
{{% tab header="Nix" %}}
32+
```bash
33+
nix-env -i lima
34+
```
35+
36+
Nix file: <https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/virtualization/lima/default.nix>
37+
{{% /tab %}}
2538

26-
### Install Lima from binary
39+
{{% tab header="Binary" %}}
2740
Download the binary archive of Lima from <https://github.com/lima-vm/lima/releases>,
2841
and extract it under `/usr/local` (or somewhere else).
2942

@@ -32,7 +45,16 @@ brew install jq
3245
VERSION=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
3346
curl -fsSL "https://github.com/lima-vm/lima/releases/download/${VERSION}/lima-${VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local
3447
```
48+
{{% /tab %}}
3549

36-
### Install Lima from source
50+
{{% tab header="Source" %}}
51+
The source code can be found at <https://github.com/lima-vm/lima.git>
3752

38-
To install Lima from the source, run `make && make install`.
53+
```bash
54+
git clone https://github.com/lima-vm/lima.git
55+
cd lima
56+
make
57+
make install
58+
```
59+
{{% /tab %}}
60+
{{< /tabpane >}}

0 commit comments

Comments
 (0)