LinuxQuestions.org
Register a domain and help support LQ
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 11-12-2012, 11:25 AM   #1
steinz
Member
 
Registered: Mar 2006
Posts: 49

Rep: Reputation: 16
yum repositories


Hi,

I am using Oracle Linux, I am able to do yum update, but I am not sure which repository its using.
I have two files in /etc/yum.repos.d, both have enabled = 0. I have checked /etc/yum.conf and see not repositories listed. I can do a yum repolist and I see :
Loaded plugins: rhnplugin, security
repo id repo name status
ol6_x86_64_latest Oracle Linux 6 Latest (x86_64) 18,150
repolist: 18,150

where is Linux getting this info from?

Thanks
Randy
 
Old 11-12-2012, 11:40 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,791
Blog Entries: 54

Rep: Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981
'yum repolist enabled'
 
Old 11-12-2012, 12:49 PM   #3
steinz
Member
 
Registered: Mar 2006
Posts: 49

Original Poster
Rep: Reputation: 16
thanks but

that did not help, it still gives a list of the repository names. I have disabled all the repository files in /etc/yum.repos.d but I can still get out to the internet and update my system. so there must be a repository file I am not finding that is enabled.
 
Old 11-12-2012, 03:46 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,531

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
if you did not reboot
or
rebuild the database
then the enabled repos are STILL in ram and still being used

normally the database IS automatically rebuilt on any change to the *.repo files
unless you disabled that

Code:
su -
rpm --rebuilddb
yum update
 
Old 11-13-2012, 08:23 AM   #5
steinz
Member
 
Registered: Mar 2006
Posts: 49

Original Poster
Rep: Reputation: 16
not the same

I do not want to rebuild the database.
what I would like to do is find out how the os knows where to go for the updates.
I have disabled the files in /etc/yum.repos.d/ and yet when I run yum update, it knows where to go for the latest versions of the packages. I have also looked at /etc/yum.conf and there is nothing in there.
 
Old 11-13-2012, 10:01 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,791
Blog Entries: 54

Rep: Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981
Then consult the manual and run yum in debug mode. Maybe that shows some clues.
 
Old 11-13-2012, 12:25 PM   #7
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Rep: Reputation: 3
my guess is that the repo is still in the cache. Why not try a
Code:
yum clean all
Then try to update and see if it still knows where to go
 
Old 11-13-2012, 02:13 PM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 13,531

Rep: Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807Reputation: 1807
Post the output of this please
Code:
su -
yum repolist all

some ( almost all) of the text files in /etc/yum.repos.d
Have more than one section
the normal
the source
the update


but the normal very first thing to try with a yum erroris the normal everyday fix that works 90% of the time
Code:
su -
yum clean all
rpm --rebuilddb
yum update
for 5 % of the remaining 10% this dose it
reverse the yum and rpm command
Code:
su -
rpm --rebuilddb
yum clean all

Last edited by John VV; 11-13-2012 at 04:47 PM.
 
  


Reply

Tags
oracle, yum


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
[SOLVED] Yum repositories gymiv@aol.com Linux - Software 12 03-10-2011 05:04 PM
YUM repositories: Syntax Kenny_Strawn Fedora 1 03-07-2010 07:44 PM
YUM Repositories MMaghraby Linux - Software 4 03-30-2009 04:31 AM
Yum repositories for FC8 Ross Clement Fedora 8 12-16-2007 01:10 AM
yum repositories ?? ZeroIdea Linux - Software 2 10-23-2005 07:02 AM


All times are GMT -5. The time now is 05:36 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration