Skip to content

Commit

Permalink
Fix installation guide
Browse files Browse the repository at this point in the history
Signed-off-by: Gris Ge <[email protected]>
  • Loading branch information
cathay4t committed Apr 16, 2024
1 parent 8855058 commit 3aed576
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 57 deletions.
56 changes: 5 additions & 51 deletions user/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
* [RPM based](#rpm-based)
* [Stable release](#stable-release)
* [Developer Branch](#developer-branch)
* [PyPI/pip](#pypipip)
* [Stable Release](#stable-release-1)
* [Developer Branch](#developer-branch-1)
* [setup.py](#setuppy)
* [Stable Release](#stable-release-2)
* [Developer Branch](#developer-branch-2)
* [Install from source](#install-from-source)

<!-- vim-markdown-toc -->

Expand All @@ -19,19 +14,10 @@

### Stable release

Nmstate is in Fedora and EPEL 7 testing, you may install it using below
Nmstate is in Fedora 31+ and RHEL 8+, you may install it using below
commands.

* Fedora 31+

```bash
sudo dnf install nmstate
```

* RHEL 8 using copr repo

```bash
sudo dnf copr enable nmstate/nmstate-stable
sudo dnf install nmstate
```

Expand All @@ -46,42 +32,10 @@ sudo dnf copr enable nmstate/nmstate-git
sudo dnf install nmstate
```

## PyPI/pip

### Stable Release

```bash
pip --user --upgrade install nmstate
```

### Developer Branch

```bash
git clone https://github.com/nmstate/nmstate.git
cd nmstate
pip install --user --upgrade .
```

## setup.py

### Stable Release

```bash
# Download tarball and signature from:
# https://github.com/nmstate/nmstate/releases/
gpg2 --recv-keys F7910D93CA83D77348595C0E899014C0463C12BB
gpg2 --verify ./nmstate-*.tar.gz.asc nmstate-*.tar.gz
tar xf nmstate-*.tar.gz
cd nmstate-*
python setup.py build
python setup.py install
```

### Developer Branch
## Install from source

```bash
git clone https://github.com/nmstate/nmstate.git
# Use git or download tarball from https://github.com/nmstate/nmstate/releases
cd nmstate
python setup.py build
python setup.py install
PREFIX=/usr make install
```
8 changes: 2 additions & 6 deletions user/quick_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This guide is helpful to install Nmstate from source, for installing stable
release or other installation methods, pleaser refer to [Nmstate installation
guide](./install.md)
guide](./install.html)

### Dependencies

Expand All @@ -23,13 +23,9 @@ In order to support specific capabilities, additional packages are required:
```bash
git clone https://github.com/nmstate/nmstate.git
cd nmstate
pip install --user --upgrade .
PREFIX=/usr make install
```

Note: In order to report current state, installing Nmstate as a non-root user
should be enough. For change support, install the package as root.


## View state

There are two ways of using Nmstate. The first one is using nmstatectl command
Expand Down

0 comments on commit 3aed576

Please sign in to comment.