-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.el8.sh
More file actions
20 lines (15 loc) · 768 Bytes
/
setup.el8.sh
File metadata and controls
20 lines (15 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function fix_yum_repos() {
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*;
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*;
}
function install_linux_tooling() {
yes | yum install -y epel-release sudo;
yes | yum install -y which less tar git wget vim screen strace gdb perf bc jq python3 python3-devel python3-pip libaio bash-completion nc gcc-c++ cmake fuse fuse-devel net-tools sysstat psmisc;
rpm -Uvh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/jq-1.6-3.el8.x86_64.rpm;
}
function install_mgenerate() {
yes | dnf module reset nodejs;
yes | dnf module install nodejs:12;
yes | yum install -y npm;
npm install -g mgeneratejs;
}