Last active
July 1, 2024 09:09
-
-
Save AlexBaranowski/4d1aab197164ec55e200c00ceb6884db to your computer and use it in GitHub Desktop.
Add/Enable EuroLinux 7.9 Vault Repositories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ $EUID -ne 0 ]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
[ -e /etc/pki/rpm-gpg/RPM-GPG-KEY-eurolinux7 ] || curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-eurolinux7 https://fbi.cdn.euro-linux.com/security/RPM-GPG-KEY-eurolinux7 | |
cat <<EOF > /etc/yum.repos.d/eurolinux-7-vault-repos.repo | |
[eurolinux7-base] | |
name=Eurolinux 7 Base Vault | |
baseurl=https://vault.cdn.euro-linux.com/legacy/eurolinux/7/7.9/os/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-eurolinux7 | |
[eurolinux7-updates] | |
name=Eurolinux 7 Updates Vault | |
baseurl=https://vault.cdn.euro-linux.com/legacy/eurolinux/7/7.9/updates/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-eurolinux7 | |
EOF | |
echo "Eurolinux 7 Vault repositories added" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment