Skip to content

Commit f245e08

Browse files
authored
Merge pull request #544 from aliPMPAINT/master
added guide for more distros and a more complete guide
2 parents 24d5267 + fa0ecda commit f245e08

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

docs/source/installation/linux.rst

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ instructions in `Certifying a clean install`_.
1010
The two necessary dependencies are cairo and ffmpeg. LaTeX is strongly
1111
recommended, as it is necessary to have access to the ``Tex`` and ``MathTex`` classes.
1212

13-
Ubuntu/Debian
13+
Ubuntu/Mint/Debian
1414
*************
1515

1616
Before installing anything, make sure that your system is up to date.
@@ -39,13 +39,61 @@ To install LaTeX:
3939
sudo apt install texlive texlive-latex-extra texlive-fonts-extra \
4040
texlive-latex-recommended texlive-science texlive-fonts-extra tipa
4141
42+
If you don't have python3-pip installed, install it:
43+
44+
.. code-block:: bash
45+
46+
sudo apt install python3-pip
47+
4248
.. note:: These instructions are also valid for other Debian-based
4349
distributions or distributions that use the ``apt`` package manager.
4450

4551

52+
Fedora/CentOS/RHEL
53+
*************
54+
55+
To install cairo:
56+
57+
.. code-block:: bash
58+
59+
sudo dnf install cairo-devel
60+
61+
To install ffmpeg:
62+
63+
Add RPMfusion repository if it's not already added:
64+
65+
.. code-block:: bash
66+
67+
sudo dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
68+
69+
Install ffmpeg from RPMfusion repository:
70+
71+
.. code-block:: bash
72+
73+
sudo dnf install ffmpeg
74+
75+
Install python development headers in order to successfully build pycairo wheel:
76+
77+
.. code-block:: bash
78+
79+
sudo dnf install python3-devel
80+
81+
To install LaTeX:
82+
83+
.. code-block:: bash
84+
85+
sudo dnf install texlive-scheme-medium
86+
87+
4688
Arch/Manjaro
4789
************
4890

91+
Before installing anything, make sure that your system is up to date.
92+
93+
.. code-block:: bash
94+
95+
sudo pacman -Syu
96+
4997
To install cairo:
5098

5199
.. code-block:: bash
@@ -65,6 +113,12 @@ To install LaTeX:
65113
66114
sudo pacman -S texlive-most
67115
116+
If you don't have python-pip installed, install it:
117+
118+
.. code-block:: bash
119+
120+
sudo pacman -S python-pip
121+
68122
69123
.. note:: These instructions are also valid for other Arch-based
70124
distributions or distributions that use the ``pacman`` package

0 commit comments

Comments
 (0)