configuring the yum

Latest response

Hi,

Kindly let me know the configuration .repo file to be stored at /etc/yum.repos.d/ for configuring yum on rhel 6.1

Responses

Not sure which repo you'd like to configure. But please review this link below, I'm sure it will assist you:
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Managing_Yum_Repositories.html

Hello Sanjay,
If you are asking about the REPOs to update your OS and other Red Hat provided software, you should register your host and the REPO will automatically be configured.

rhnreg_ks
or
rhn_register

https://access.redhat.com/site/articles/2394

Or, using Subscription Manager
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/entitlements.html

If you were wondering about non-Red Hat REPOs, please let us know which one you would like to add or configure, and we can point you in the right direction to add them correctly.

Sanjay,

/etc/yum.repos.d files are only need if you what to use non Red Hat repos.
The ones that are coming from RHN or a Satellite server are kept somewhere else.

So this directory may be empty.

To use the Red Hat repos follow the reference mentioned by David and James.

Kind regards,

Jan Gerrit Kootstra

Sanjay,

  • Are you connected to a Red Hat Satellite server or Red Hat Satellite Proxy server?
    • If so, a local yum repo will be surpassed if you have a client system registered to a Satellite server with more current channels that exist on the Satellite server.
    • If you do a yum update to a client system with a localized yum while it is registered to a Satellite server with more current channels, the satellite server's channels will give your system the latest rpms it has in it's repository.

If you have a system you wish to keep at a lower level of RHEL for some reason, there are some recent discussons here on how to do that.

  • Are you not connected to the public Red Hat Network?
  • Are you behind a network that has no visibility to a public network (namely, you are forbidden from reaching the Red Hat Network)?
  • If you have no Satellite server, and no Red Hat Netowrk, and your system is fully disconnected from the public internet and you just need a Red Hat yum repository, then check out the instructions in the first reply from
    David Faverman.

Good Luck

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.