-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprereqs_rhubi.sh
More file actions
executable file
·39 lines (30 loc) · 1.37 KB
/
prereqs_rhubi.sh
File metadata and controls
executable file
·39 lines (30 loc) · 1.37 KB
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
#!/bin/bash
getScriptPath () {
echo ${0%/*}/
}
myPath=$(getScriptPath)
. ${myPath}/lib.sh
echo_i "Remove RH Subscription"
subscription-manager config --rhsm.manage_repos=0
#assert_success $? "Failed to remove subscription" || exit 2
echo_i "Update"
yum update -y
assert_success $? "Failed to update" || exit 2
if ! rpm --quiet --query epel-release; then
echo_i "Install EPEL repository"
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm
assert_success $? "Failed to install EPEL repository" || exit 2
fi
if ! rpm --quiet --query rpmfusion-free-release; then
echo_i "Install rpmfusion.org repository"
yum install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm
assert_success $? "Failed to install rpmfusion.org/free repository" || exit 2
fi
if ! rpm --quiet --query rpmfusion-nonfree-release; then
echo_i "Install rpmfusion.org repository"
yum install -y https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
assert_success $? "Failed to install rpmfusion.org/nonfree repository" || exit 2
fi
echo_i "Install tools, Qt and ffmpeg"
yum install -y which sudo make hostname openssh-clients rpm-build gcc-c++ qt6-qtbase-devel qt6-qtsvg ffmpeg ffmpeg-devel
assert_success $? "Failed to install tools, Qt and ffmpeg" || exit 2