Last active
July 5, 2024 04:02
-
-
Save AlexBaranowski/cdff6f0c45a50f16ff485813518e44b6 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# This script adds EuroLinux 6.10 vault repos | |
if [ $EUID -ne 0 ]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
# Remove Free Base Image repositories | |
[ -e /etc/yum.repos.d/fbi-base.repo ] && rm -f /etc/yum.repos.d/fbi-base.repo | |
# Yeah, the EuroLinux 6 RPM key was not numbered :) | |
[ -e /etc/pki/rpm-gpg/RPM-GPG-KEY-eurolinux ] || curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-eurolinux https://fbi.cdn.euro-linux.com/security/RPM-GPG-KEY-eurolinux | |
# EuroLinux 6 has master BaseOS (with updates inside) and Extras (with updates inside) repositories | |
cat <<EOF > /etc/yum.repos.d/eurolinux-6-vault-repos.repo | |
[eurolinux6-base] | |
name=Eurolinux 6 Base Vault | |
baseurl=https://vault.cdn.euro-linux.com/legacy/eurolinux/6/6.10/BaseOS/x86_64/os/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-eurolinux | |
[eurolinux6-extras] | |
name=Eurolinux 6 Updates Vault | |
baseurl=https://vault.cdn.euro-linux.com/legacy/eurolinux/6/6.10/Extras/x86_64/os/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-eurolinux | |
EOF | |
echo "Eurolinux 6 Vault repositories added" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment