Ask Your Question
3

How to manage repositories?

asked 2012-02-11 18:50:14 -0600

Benjamin gravatar image

Could you please help me get a clear view of how repositories in Fedora work? So far, I have seen several ways to add repositories as well as several kinds of files: *.rpm, *.repo, *.noarch etc.

I do not get the whole picture as of yet, nor did I find any good resource that explains this simply and clearly (the wiki is a bit short in details). I hope this question can be answered providing information on:

  • How to find which repositories are currently registered on my Fedora?
  • How to find new repositories?
  • How to add new repositories?
  • How to update from repositories?
  • How to install from repositories?
  • What various software are available for repository management?
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
7

answered 2012-02-12 01:26:40 -0600

FranciscoD_ gravatar image

updated 2012-02-12 01:28:10 -0600

So far, I have seen several ways to add repositories as well as several kinds of files: *.rpm, *.repo, *.noarch etc.

I do not get the whole picture as of yet, nor did I find any good resource that explains this simply and clearly (the wiki is a bit short in details). I hope this question can be answered providing information on:

The noarch files are just rpm files. If you look at the contents of these rpms, you'll notice they contain *.repo files. The repo files are what control yum repositories in fedora.

rpm -pql <rpm repo file>

will list the files the rpm contains: you should see a repo file listed.

How to find which repositories are currently registered on my Fedora?

yum repolist

or

ls /etc/yum.repos.d
How to find new repositories?

Well, no definite way. Look around if the project you want packages from supports yum repositories.

Generally the fedora default repositories and the RPMfusion repositories are more than sufficient. It is advised against using other repositories. They generally break stuff.

How to add new repositories?

If you have an rpm, "install" it using yum or rpm. All this does is place the repo file contained in the rpm to the desired location /etc/yum.repos.d.

As root:

rpm -Ivh <rpm file>

or

yum localinstall <rpm file>

If you have a repo file, you need to place it in the desired location /etc/yum.repos.d manually.

How to update from repositories?

If the repository is enabled, yum update is sufficient.

How to install from repositories?

If the repository is enabled, yum install <package name>

What various software are available for repository management?

Well, the packagekit front end allows the user to enable/disable repositories. I think yumex also does. yum itself has commands too. But the entire system being so simple eradicates the need for a tool to manage repositories really.

Added reading:

man yum
man yum.conf
edit flag offensive delete link more

Comments

That's because the purpose of this rpm is not to set up the skype repo. An rpm is just a bunch of files with directives on where they should be placed etc.

FranciscoD_ gravatar imageFranciscoD_ ( 2012-02-12 07:35:26 -0600 )edit
1

I can't answer all your questions here @Benjamin. Have you tried google yet? http://www.rpm.org/max-rpm/ is the top link.

FranciscoD_ gravatar imageFranciscoD_ ( 2012-02-12 09:30:27 -0600 )edit
0

answered 2012-02-13 10:45:05 -0600

lzap gravatar image

Also check out Pulp project which allows you to manage your repositories remotely. It's a very clever yum proxy, simply put.

http://pulpproject.org/

There is also Katello project which leverages Pulp and Candlepin. It's more cloud-based project and it could be interesting if you manage more RHEL-based servers and you deal with subscriptions etc.

http://katello.org/

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-02-11 18:50:14 -0600

Seen: 44,555 times

Last updated: Jan 31 '15