forked from ccbogel/QualCoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_fedora.sh
executable file
·25 lines (23 loc) · 1.66 KB
/
install_fedora.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
echo "This installer is for Fedora Linux installations using python 3.10 only."
echo "Change 3.10 in this script to higher numbers if you have a more recent version of python installed."
echo "This installer uses DNF package management."
echo "QualCoder will be copied to the directory /usr/share/"
echo "These actions require owner (sudo) permission"
echo "The installer will also install dependencies"
sudo dnf install python3-devel python3-pdfminer.noarch python3-qt5 python3-pillow python3-openpyxl python3-pip python3-pyqt5 python3-lxml python3-pil vlc python3-ply python3-six python3-chardet ffmpeg -y
# several python packages are not available by Fedora, so install using pip
echo "Please wait ..."
python3 -m pip install Ebooklib pydub SpeechRecognition pdfminer.six
sudo cp -r qualcoder /usr/share/qualcoder
sudo cp qualcoder/GUI/qualcoder128.png /usr/share/icons/qualcoder128.png
sudo cp qualcoder/GUI/qualcoder.desktop /usr/share/applications/qualcoder.desktop
sudo python3 setup.py install
echo "If no errors then installation is completed."
echo "To remove qualcoder from Linux run the following in the terminal:"
echo "sudo rm -R /usr/share/qualcoder"
echo "sudo rm /usr/share/icons/qualcoder128.png"
echo "sudo rm /usr/share/applications/qualcoder.desktop"
echo "also note that via dnf the subsequent packages were installed: python3-devel python3-pdfminer.noarch python3-qt5 python3-pillow python3-openpyxl python3-pip python3-pyqt5 python3-lxml python3-pil vlc python3-ply python3-six python3-chardet ffmpeg"
echo "and via python's pip these packages were installed: Ebooklib pydub SpeechRecognition pdfminer.six"
echo "Consider whether you still need these packages"