Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-16-2007, 10:54 PM   #1
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
YUM: How to install package from a specific repository?

Usually, yum just install the latest package among all the enabled respositories. However, for a particular package, is there a way to install the package from a specific repository?

Eg. Package A is available in both base and extra repositories. However, the package in extra repository is newer. Is there a way to use yum to install the older package from the base repository instead and to maintain the package at the older version even with yum update?

Old 04-16-2007, 11:04 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Installing is easy; just disable the repository you don't want the package from:

yum --disablerepo=extras install packageA

To prevent yum from ever selecting the package from extras, you can add to the extras.repo file in /etc/yum.repos.d/:


There are also plugins for yum that can control which packages are selected from which repositories, like yum-protectbase, yum-priorities, and yum-versionlock.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
fc6 yum install error multiple repository entries joncampbell60 Linux - Software 7 11-28-2006 01:51 AM
install older kernel package not contained in repository kpachopoulos Debian 1 05-02-2006 10:52 PM
Package install from online repository, security and paranoia Robhogg Linux - Security 2 03-02-2006 06:20 AM
How to install a specific package? ricky_ds Red Hat 3 08-22-2005 04:57 AM
install local dir as yum repository unixmad Linux - Newbie 2 10-01-2004 05:07 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration