Skip to content

Instantly share code, notes, and snippets.

@AlexBaranowski
Last active July 1, 2024 09:09
Show Gist options
  • Save AlexBaranowski/4d1aab197164ec55e200c00ceb6884db to your computer and use it in GitHub Desktop.
Save AlexBaranowski/4d1aab197164ec55e200c00ceb6884db to your computer and use it in GitHub Desktop.
Add/Enable EuroLinux 7.9 Vault Repositories
#!/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