Repositories: BaseOS, AppStream, adding a new repo
Sign in to read this lesson
RHEL packages come from two main repositories — BaseOS and AppStream. In companies, servers without internet are often updated from an internal mirror or the installation ISO. In this lesson we learn to read .repo files, add a new repository, build a local repo from the ISO, and GPG signature checking.
What you will learn
- BaseOS is the core of the operating system (kernel, systemd, basic tools); AppStream holds applications, languages and databases (httpd, php, mariadb).
- Repository settings live in
/etc/yum.repos.d/*.repo:[id],name,baseurl,enabled,gpgcheck,gpgkey. dnf config-manager --add-repo URLcreates a repo file;--enable/--disableswitch it on and off.- A typical RHCSA task: configure BaseOS and AppStream repos by hand from a given URL.
- Keep
gpgcheck=1— installing unsigned packages is a security risk.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.