-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoftware-Fedora-RHEL.sh
65 lines (59 loc) · 1.8 KB
/
Software-Fedora-RHEL.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
echo "Please enter your laptop's password"
sudo -v
echo "Software list"
echo "Text editors"
echo "(1) atom"
echo "(2) pluma"
echo "(3) gedit"
echo "(4) emacs"
echo "(5) vim"
echo "(6) kwrite"
echo "(7) vscode"
echo "Audio & Video"
echo "(8) mpv"
echo "(9) audacity"
echo "Electronics"
echo "(10) qucs"
echo "(11) kicad"
echo "Terminals"
echo "(12) tilix"
echo "(13) konsole"
echo "Other"
echo "(14) gparted"
echo "Please enter the numbers of the Softwares you would like with spaces"
read -r selections
install_software() {
case "$1" in
1)
echo "Downloading Atom..."
curl -L -o atom.x86_64.rpm https://github.com/atom/atom/releases/download/v1.60.0/atom.x86_64.rpm
sudo dnf install atom.x86_64.rpm -y
rm atom.x86_64.rpm ;;
2) sudo dnf install pluma -y ;;
3) sudo dnf install gedit -y ;;
4) sudo dnf install emacs -y ;;
5) sudo dnf install vim -y ;;
6) sudo dnf install kwrite -y ;;
7)
echo "Downloading Visual Studio Code..."
curl -L -o vscode.rpm 'https://code.visualstudio.com/sha/download?build=stable&os=linux-rpm-x64'
sudo dnf install vscode.rpm -y
rm vscode.rpm ;;
8) sudo dnf install mpv -y ;;
9) sudo dnf install audacity -y ;;
10) sudo dnf install qucs -y ;;
11)
echo "Installing KiCad..."
sudo dnf install -y dnf-plugins-core
sudo dnf copr enable -y @kicad/kicad-testing
sudo dnf install -y kicad kicad-packages3d kicad-doc ;;
12) sudo dnf install tilix -y ;;
13) sudo dnf install konsole -y ;;
14) sudo dnf install gparted -y ;;
*) echo "Invalid selection" ;;
esac
}
for selection in $selections; do
install_software "$selection"
done