To enable a new RPM (yum) repository add a new .repo file for it under /etc/yum.repos.d. For example, to add a repository to install google’s Chrome browser add a file (e.g. google.repo) in the /etc/yum.repos.d directory and copy the following into it:

name=google-chrome - 64-bit

You may also append the new repositories info to the /etc/yum.conf file but the above is a cleaner method.

Often a repository will provide a platform-independent package which installs it on the system, e.g. works this way. The link explains how to do this.

And yet a third method, if you know the location of an RPM file on the net but it is not a part of any repository you can just do:
rpm -Uhv

Replace the http above by ftp if the file is provided via ftp…

Tagged with:

2 Responses to How do I add a new RPM/yum repo in Fedora

  1. ench0 says:

    … expanding a little bit on the /etc/yum.repos.d fil above:
    If you know just the directory containing the RPM files (the baseurl) and do not know where the gpgkey is you can still use the repo. Just add all the above info except the gpgkey and then when invoking yum specify the --nogpgcheck switch. Of course you need to have a high degree of confidence in this repository to accept unsigned files from it…

    For example, I added the chromium browser Fedora repository (described here: in such a manner becasue I could not figure out where the gpg key is. There is probably a way to use the data in the …/repodata sub-directory somehow, perhaps using the createrepo command but I don’t know how to do it…

  2. ench0 says:

    A useful RPM repo for Fedora N (replace N with your Fedora release number):

    rpm -Uvh

Leave a Reply

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

Set your Twitter account name in your settings to use the TwitterBar Section.