-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bash
More file actions
executable file
·25 lines (20 loc) · 848 Bytes
/
setup.bash
File metadata and controls
executable file
·25 lines (20 loc) · 848 Bytes
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
#!/bin/bash
echo "This script install certain commonly used packages that is not automatically installed after brand new system install"
echo "Currently this scirpt only works for fedora or centos-stream"
echo "Are you to continue?"
read -p "[y]es/[n]o: " buf
if [[ ! "${buf}" == "y" ]]; then
exit 1
fi
unset buf
pm=apt
echo "Use ${pm} as package manager"
if [[ "$pm" == "dnf" ]]; then
echo "Updating System"
sudo dnf update -y && sudo $pm upgrade -y
apps_dnf="neovim zathura zathura-pdf-poppler g++ clang clang-devel clang-analyzer clang-tools-extra clang-format assimp assimp-devel mesa-libGL-devel freeglut freeglut-devel"
sudo ${pm} install ${apps_dnf} -y
elif [[ "$pm" == "apt" ]]; then
apps_apt="zathura zathura-pdf-poppler g++ clang clang-format python3 mesa-utils freeglut3-dev libglew-dev"
sudo ${pm} install ${apps_apt} -y
fi