diff --git a/user/install.md b/user/install.md index 223b328..313f38c 100644 --- a/user/install.md +++ b/user/install.md @@ -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) @@ -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 ``` @@ -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 ``` diff --git a/user/quick_guide.md b/user/quick_guide.md index 649ba5c..89fec4f 100644 --- a/user/quick_guide.md +++ b/user/quick_guide.md @@ -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 @@ -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