Ask Your Question

How to install software from specific repository?

asked 2014-06-09 04:56:46 -0600

Daniel01 gravatar image

How can you choose the repository from which you want to install the software if available in multiple repos.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-09 09:37:16 -0600

hedayat gravatar image

If the software have different versions in these repos, you can install the desired package by including its version number in the install command:


However, if the same version of the package is available in multiple repos, and you don't want to disable one of the repositories temporarily, you can change the order of repositories by changing their cost parameter in their repository configuration file. If a package is available in two repositories, it'll be installed from the repository with the lower cost. The default cost for all repos is 1000 (when the cost of two repositories are equal, they are ordered alphabetically). So, if you want yum to install a package from repository A instead of B, you should define a lower cost for repository A in its configuration file. You should add the following line to /etc/yum.repos.d/A.repo:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-06-09 04:56:46 -0600

Seen: 973 times

Last updated: Jun 09 '14