LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2014, 11:05 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 687

Rep: Reputation: Disabled
Why isn't a package available in a repo?


I am using priorities. I am trying to install git from the PUIAS repo. Why doesn't it show as available? Thank you
Code:
[root@michaels gitlab]# yum repolist
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
 * PUIAS_6_computational: puias.math.ias.edu
 * Webmin: download.webmin.com
 * base: centos.mirror.freedomvoice.com
 * epel: mirror.pnl.gov
 * extras: mirror.anl.gov
 * ius: mirror.sothatswhy.org.uk
 * updates: centos.sonn.com
595 packages excluded due to repository priority protections
repo id               repo name                                       status
PUIAS_6_computational PUIAS computational Base 6 - x86_64              1,975+487
Webmin                Webmin Distribution Neutral                            175
base                  CentOS-6 - Base                                      6,367
epel                  Extra Packages for Enterprise Linux 6 - x86_64  10,556+101
extras                CentOS-6 - Extras                                       14
ius                   IUS Community Packages for Enterprise Linux 6 -      257+2
updates               CentOS-6 - Updates                                     711
repolist: 20,055

[root@michaels gitlab]# cat /etc/yum.repos.d/PUIAS_6_computational.repo
[PUIAS_6_computational]
name=PUIAS computational Base $releasever - $basearch
mirrorlist=http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch/mirrorlist
#baseurl=http://puias.math.ias.edu/data/puias/computational/$releasever/$basearch
enabled=1
priority=90
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias

[root@michaels gitlab]# yum list all git
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
 * PUIAS_6_computational: puias.math.ias.edu
 * Webmin: download.webmin.com
 * base: centos.mirror.freedomvoice.com
 * epel: mirror.pnl.gov
 * extras: mirror.anl.gov
 * ius: mirror.sothatswhy.org.uk
 * updates: centos.sonn.com
595 packages excluded due to repository priority protections
Available Packages
git.x86_64                         1.7.1-3.el6_4.1                          base
[root@michaels gitlab]#
 
Old 03-27-2014, 11:16 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,185

Rep: Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586
No mystery here. You have that repo set at priority 90,.. so the base repo set at priority 1 is overriding it.

Quote:
595 packages excluded due to repository priority protections
Generally what we do is use the yum enablerepo/disablerepo parameters to install a program from a specific repository, to avoid using priorities.

example output:

Code:
#yum --disablerepo=* --enablerepo=epel repolist
Loaded plugins: security
repo id                            repo name                                                                 status
epel                               Extra Packages for Enterprise Linux 6 - x86_64                            10,657
repolist: 10,657

Last edited by szboardstretcher; 03-27-2014 at 11:19 AM.
 
Old 03-27-2014, 11:41 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 687

Original Poster
Rep: Reputation: Disabled
Thanks szboardstretcher, I obviously wasn't thinking.

I tried the following, but resulted in an error since git needed a dependency. Got around it by disabling priorities, but would like to know the proper way to do it.

Code:
yum --disablerepo=* --enablerepo=PUIAS_6_computational install git
 
Old 03-27-2014, 12:02 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,185

Rep: Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586Reputation: 1586
Priorities works. It's not 'wrong' to use it. But, IMO, it becomes a real pain in the ass to keep it working correctly across 100+ servers.

But to find dependencies ahead of time,. you can install yum-utils, and use:

Code:
repoquery --requires packagename
Then enable and disable from there.
 
Old 03-27-2014, 12:26 PM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 687

Original Poster
Rep: Reputation: Disabled
That sounds like a pain. I would have thought there would have been a way to specify a repository for a given package. Why not just for the few times you want to override your priorities, do as follows? Will this cause problems when upgrading?

Code:
yum --disableplugin=priorities install git
 
  


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
Building package from source isn't replacing default package (Ubuntu) ajck Linux - Software 2 06-27-2013 12:38 AM
Changing a package from the repo -- permanent? Konphine Slackware 6 02-09-2012 02:49 PM
fc6 package manager repo not found jkemper Linux - Software 5 06-16-2009 11:26 AM
Which yum repo was a package installed from? arizonagroovejet Linux - General 1 08-25-2008 08:58 AM
Isn't 'Nvu' in repo? Hitboxx Fedora 10 05-20-2007 01:38 AM


All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration