Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Red Hat Enterprise Linux 5 > Issue <<  16 of 367 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 10765
Last update: 02-27-08
Issue:
How can I add a new yum repository as a source to install software?
Resolution:

In order to install software from a new repository, create a new file in /etc/yum.repos.d.

For example, in order to install pidgin (the new project name of gaim - instant messenger software), create a file named /etc/yum.repos.d/pidgin.repo as following:

[pidgin]
name=Pidgin for RHEL/CentOS $releasever - $basearch
baseurl=http://rpm.pidgin.im/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://rpm.pidgin.im/RPM-GPG-KEY-pidgin

All of this configuration information should be available on the site for which the yum repo is being created.

Then import the gpg key for the repository as follows:

rpm --import http://rpm.pidgin.im/RPM-GPG-KEY-pidgin

To disable the repository temporarily, change the enabled flag as follows:

enabled=1

to

enabled=0

To delete the repository, remove the file.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Red Hat Enterprise Linux 5 > Issue <<   16  of  367  >>