aboutsummaryrefslogtreecommitdiffstats
path: root/rpm-local/scripts/install_test.sh
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-15 10:09:40 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-15 10:09:40 +0200
commita3ac6e388a3ef851c91305c760e5b23026d541f5 (patch)
treef526179faba554867219a9d6bc5e88dea0812c9b /rpm-local/scripts/install_test.sh
parenta224af10f2c419ed7e3a94d450008f5230ed0642 (diff)
install_test: reproduce install failure with cache
Diffstat (limited to 'rpm-local/scripts/install_test.sh')
-rwxr-xr-xrpm-local/scripts/install_test.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/rpm-local/scripts/install_test.sh b/rpm-local/scripts/install_test.sh
new file mode 100755
index 0000000..28b66b1
--- /dev/null
+++ b/rpm-local/scripts/install_test.sh
@@ -0,0 +1,19 @@
+#!/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-trx-uhd