Fedora – How to add a repository on Fedora

fedorayum

With one repository I did it like this (as root):

# cd /etc/yum.repos
# wget https://some.repo.example.org/foo/bar/Fedora_14/foo_bar.repo
# grep enabled foo_bar.repo
enabled=1

Is this the recommended way to add a package repository under Fedora (>= 14)?

Is there some policy/standard which specifies that each proper Fedora package repository should (or must) contain such a config file (i.e. such a .repo file)?

(basically just for the reason that a user or some tool can copy it to the local /etc/yum.repos directory?)

Best Answer

The Fedora 14 docs. haven't been updated yet. The latest way to do this with just a .repo file is:

yum-config-manager --add-repo=https://some.repo.example.org/foo/bar/Fedora_14/foo_bar.repo

...you can then use yum-config-mananger --enable etc. too.

Related Question