Skip to content

Commit b9183de

Browse files
frenzymadnesshroncok
authored andcommitted
Add installation description (#42)
Fixes #35 Merges #42
1 parent 38a26a2 commit b9183de

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,29 @@ interfaces, driver, and hardware settings.
1313
deprecated package.** If you are considering to start using this, please
1414
don't. We recommend `netifaces <https://pypi.org/project/netifaces/>`_ instead.
1515

16+
Installation
17+
------------
18+
19+
The easiest way to install ``ethtool`` is to use your distribution packages
20+
repositories. For example:
21+
22+
**Fedora**: ``sudo dnf install python3-ethtool`` or ``sudo dnf install python2-ethtool``
23+
24+
**Ubuntu**: ``sudo apt install python-ethtool``
25+
26+
In order to install ``ethtool`` from source or PyPI install its dependencies first:
27+
28+
**Fedora**: ``sudo dnf install libnl3-devel gcc redhat-rpm-config python3-devel``
29+
30+
**Ubuntu**: ``sudo apt install python3 python3-setuptools libpython3.6-dev libnl-route-3-dev``
31+
32+
And then install ``ethtool``:
33+
34+
**from PyPI**: ``pip3 install ethtool``
35+
36+
**from source**: ``python3 setup.py install``
37+
38+
1639
Usage
1740
-----
1841

0 commit comments

Comments
 (0)