Configuring additional repositories
Whether you create your own mirror repository or organizations provide software for you in repositories, setting up additional repositories on your RHEL system is quite simple. This recipe will show you how to set them up. Many repositories have their own repo files or even an RPM that automatically installs the repository. When these are available, don't hesitate to use them!
Getting ready
For this to work, you will need to have a repository set up, which can be accessed through the following URL: http://repo.example.com/myrepo/7/x86_64
.
How to do it…
In order to create an additional repository, create a file in /etc/yum.repos.d
called myrepo.repo
, which contains the following information:
[myrepo] name=My Personal Repository baseurl=http://repo.example.com/myrepo/$releasever/$basearch gpgcheck=0 enabled=1
There's more…
The gpgcheck=1
option only functions if you or the provider of a repo has signed all the RPMs in the repo. This is generally a good practice...