How to give CentOS builds access to EPEL repositories?

Hi,

Is there a way that I can give my CentOS repositories access to the Extra Packages for Enterprise Linux (EPEL) repositories, perhaps by modifying my meta or project configuration?

Thanks for your time,
Brenton

I do have a .repo file for it to use, if that is required.

Repositories do not access anything. Do you mean your project or your package? You can refer to other projects/packages that exist on OBS. As far as I know OBS build system does not have any access to Internet so you cannot access external repositories directly during build.

As in you know how the OBS has a set of packages available in their default repositories to satisfy the build dependencies of the packages you build? Well I mean how can I add packages in the EPEL repos to that set of packages?

As in you know how the OBS has a set of packages available in their default repositories to satisfy the build dependencies of the packages you build? Well I mean how can I add packages in the EPEL repos to that set of packages?

You can not.
Build it in your OBS-Homeā€¦and set the right Distribution.

Sorry for bringing this super old thread back to life.

Is there still no way to build packages in OBS that has EPEL dependencies?

I read at https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#CentOS_and_RHEL_EPEL_repositories that the EPEL packages can be found at i.e: https://build.opensuse.org/project/show/Fedora:EPEL:7

But how do I use those in my project?

https://en.opensuse.org/openSUSE:Build_Service_Tips_and_Tricks#Adding_multiple_repositories_to_a_project

Thanks! For anyone stumbling upon this in the future:


# osc meta -e prj home:<username>
,,,
  <repository name="CentOS_7">
    <path project="CentOS:CentOS-7" repository="standard"/>
    <path project="Fedora:EPEL:7" repository="standard"/>
    <path project="openSUSE:Tools" repository="CentOS_7"/>
    <arch>x86_64</arch>
  </repository>
...

Hi
You might consider configuring oscrc and adding a sudo entry for /usr/bin/build so not running as root user?