aboutsummaryrefslogtreecommitdiffstats
path: root/rpm-local/scripts/install_test_obs.sh
blob: 1ba9af80f9d8d38b1df3a12d4e4ae39f4e643a0d (plain)
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
#!/bin/sh -ex
REPO_FILE="home:osmith42.repo"

# Download repo file
cd /root/yum_repos
if ! [ -e "$REPO_FILE" ]; then
	dnf --setopt=keepcache=1 -y install wget
	wget https://download.opensuse.org/repositories/home:osmith42/CentOS_8_Stream/home:osmith42.repo
fi

# Enable repo
cp "/root/yum_repos/$REPO_FILE" "/etc/yum.repos.d/$REPO_FILE"

# update index
dnf --setopt=keepcache=1 -y check-update /etc/yum.repos.d/$REPO_FILE

# install packages
# somehow -y is not enough
yes | dnf --setopt=keepcache=1 -y install \
	osmo-bsc \
	osmo-bts \
	osmo-ggsn \
	osmo-hlr \
	osmo-iuh \
	osmo-mgw \
	osmo-msc \
	osmo-pcu \
	osmo-sgsn \
	osmo-trx \
	osmo-trx-uhd


bash