Skip to content

Commit 2a32ee4

Browse files
authored
Does not contain current packages, but might have useful code inside.
Keeping in case any of the script lines will be needed in the future for Fedora.
1 parent 2d05aa7 commit 2a32ee4

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
printf "This installer is for Fedora Linux installations using python $python_version only.\n"
3+
4+
5+
# first we add the RPM Fusion Free Updates repo, which is a third-party repository! We need it for vlc-related files
6+
sudo dnf install \
7+
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
8+
9+
10+
# Here we define which packages we install
11+
dnf_packages="python3-pip python3-devel python3-pdfminer.noarch python3-qt5 python3-pillow python3-openpyxl python3-pandas python3-plotly python3-pip python3-pyqt6 python3-pillow python3-vlc vlc python3-ply python3-six python3-chardet ffmpeg python3-pdfminer+image.noarch"
12+
pip_packages="diff-match-patch Ebooklib pydub SpeechRecognition rispy"
13+
14+
printf "Change the python_version in this script to a higher numbers if you have a more recent version of python installed.\n\n"
15+
python_version=3.12
16+
17+
echo "This installer uses DNF package management."
18+
echo "QualCoder will be copied to the directory /usr/share/"
19+
echo "These actions require owner (sudo) permission"
20+
echo "The installer will also install dependencies"
21+
sudo dnf install $dnf_packages -y
22+
# several python packages are not available by Fedora, so install using Python's package installer 'pip'
23+
echo "Please wait ..."
24+
python -m ensurepip # which makes sure pip is available
25+
python3 -m pip install --upgrade pip # which makes sure pip is up to date
26+
python3 -m pip install $pip_packages # which finally installs the packages
27+
sudo cp -r qualcoder /usr/share/qualcoder
28+
sudo cp qualcoder/GUI/qualcoder128.png /usr/share/icons/qualcoder128.png
29+
sudo cp qualcoder/GUI/qualcoder.desktop /usr/share/applications/qualcoder.desktop
30+
sudo python3 setup.py install
31+
printf "\nIf no errors then installation is completed.\n\n"
32+
echo "To remove qualcoder from Linux run the following in the terminal:"
33+
echo "sudo rm -R /usr/local/bin/qualcoder"
34+
echo "sudo rm -R /usr/share/qualcoder"
35+
echo "sudo rm /usr/share/icons/qualcoder128.png"
36+
echo "sudo rm /usr/share/applications/qualcoder.desktop"
37+
printf "\nAlso note that via dnf the subsequent packages were installed (or used): $dnf_packages. For that, the `rpmfusion` repository was also enabled. \n\n"
38+
printf "And via python's pip these packages were installed: $pip_packages.\n\n"
39+
echo "Consider whether you still need these packages."
40+
41+

0 commit comments

Comments
 (0)