RHEL 8 LABS Adding Repo

Adding your own repos to your Centos 8 server as part of RHCSA Certification.

/etc/yum.repos.d
[vagrant@system yum.repos.d]$ cat appstream.repo
[AppStream]
name=AppStream
baseurl=http://repo.eight.example.com/AppStream
enabled=1
gpgcheck=0
[vagrant@system yum.repos.d]$ ^C
[vagrant@system yum.repos.d]$ cat baseos.repo
[BaseOs]
name=BaseOs
baseurl=http://repo.eight.example.com/BaseOS
enabled=1
gpgcheck=0


[vagrant@system yum.repos.d]$ cat appstream.repo
[AppStream]
name=AppStream
baseurl=http://repo.eight.example.com/AppStream
enabled=1
gpgcheck=0
[vagrant@system yum.repos.d]$ sudo dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:00:52 ago on Wed 18 Dec 2019 17:22:15 UTC.
repo id                                               repo name                                              status
AppStream                                             AppStream                                              4,672
BaseOs                                                BaseOs                                                 1,658
[vagrant@system yum.repos.d]$

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *