LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-16-2007, 09:54 PM   #1
Akhran
Member
 
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?

Thanks!
 
Old 04-16-2007, 10:04 PM   #2
macemoneta
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: 327Reputation: 327Reputation: 327Reputation: 327
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/:

exclude=packageA

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


Reply


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 12:51 AM
install older kernel package not contained in repository kpachopoulos Debian 1 05-02-2006 09:52 PM
Package install from online repository, security and paranoia Robhogg Linux - Security 2 03-02-2006 05:20 AM
How to install a specific package? ricky_ds Red Hat 3 08-22-2005 03:57 AM
install local dir as yum repository unixmad Linux - Newbie 2 10-01-2004 04:07 PM


All times are GMT -5. The time now is 07:20 AM.

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