Ask Your Question

Where can I find a list of "standard" rpm repositories?

asked 2014-03-13 05:39:29 -0500

Piotr Dobrogost gravatar image

updated 2014-03-15 02:10:49 -0500

mether gravatar image

I'm looking for a list of standard rpm repositories for specific version of Fedora (version 20 in my case) documented somewhere on the web but can't find it. By standard I mean those that are registered in vanilla install of the system.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-03-14 14:24:29 -0500

marcindulak gravatar image

updated 2014-03-14 14:38:20 -0500

You can find the default repositories like that (extract them from the fedora-release RPM):

rpm2cpio $urlroot/$(curl -s $urlroot | grep -E "fedora-release-[0-9]+.*\.rpm" | cut -d">" -f2 | cut -d"<" -f1) | cpio -t | grep "yum.repos.d/"
# result

This will work also from a Debian after installing the rpm2cpio package. If you also want to see the original contents of the repositories (in order to see which ones are enabled by default) - extract the repo files from the RPM with cpio -idv as described here

edit flag offensive delete link more

answered 2014-03-13 06:37:23 -0500

joshuar gravatar image

Depending on what level of detail you want, you can list the repositories that are on a vanilla install with the yum repolist command. In a terminal type:

yum repolist

For more details add the -v option:

yum -v repolist

This information is also available in the .repo files in the /etc/yum.repos.d directory, though not presented as readable as the output of the yum command above.

edit flag offensive delete link more


Thanks for info but I'm concerned with finding this on the Internet as part of system's documentation.

Piotr Dobrogost gravatar imagePiotr Dobrogost ( 2014-03-13 16:10:59 -0500 )edit

This returns a list of all enabled repositories - and not only the vanilla ones.

marcindulak gravatar imagemarcindulak ( 2014-03-14 14:26:14 -0500 )edit

Good point. We are assuming here that this is a vanilla install without any extra configuration that may have changed the repositories that were enabled during install.

joshuar gravatar imagejoshuar ( 2014-03-14 18:06:45 -0500 )edit

Question Tools

1 follower


Asked: 2014-03-13 05:39:29 -0500

Seen: 878 times

Last updated: Mar 14 '14