NAME
RPM::CPAN::Repository - Manage the MediaAlpha public RPM repository
VERSION
0.0.1
SYNOPSIS
use RPM::CPAN::Repository;
RPM::CPAN::Repository::detect_al2023();
RPM::CPAN::Repository::detect_architecture();
RPM::CPAN::Repository::check_if_repo_dir_exists();
RPM::CPAN::Repository::add_the_public_ma_repo();
DESCRIPTION
RPM::CPAN::Repository provides functions to install, verify, and remove the MediaAlpha public RPM repository configuration on Amazon Linux 2023 hosts (x86_64 and aarch64/Graviton).
FUNCTIONS
detect_al2023
Reads /etc/os-release and dies unless the host is Amazon Linux 2023.
detect_architecture
Calls uname(2) and dies unless the architecture is x86_64 or aarch64. Returns the detected architecture string.
check_if_repo_dir_exists
Dies unless the /etc/yum.repos.d directory exists.
add_the_public_ma_repo
Writes the MediaAlpha public RPM repository configuration to /etc/yum.repos.d/mediaalpha-public.repo.
check_the_public_ma_repo
Reads the repo file and dies if its content differs from the expected template.
remove_the_public_ma_repo
Removes the repo file if it exists; silently succeeds if the file is absent.
AUTHOR
Labros Chaidas <labros@mediaalpha.com>
LICENSE
This software is licensed under the GNU General Public License, version 3. See the LICENSE file distributed with this software for full details.