LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-22-2009, 05:59 AM   #1
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Rep: Reputation: 16
FEDORA 10 - yum repo config issue - cannot see extra packages


i've been editing my repo files on /etc/yum.repo.d/ couple of days back to install packages from the Fedora DVD... after that i re-edit the files back to original

what i did i simply disabled all fedora and rpmfusion mirrors and justed added a pointer to my DVD... simple work and simple restoration to original...

but i've realise now YUM doesn't seem to read the repos at all now... no updates and extra uninstalled packages available....

how can i fix this configuration or reconstruct or restore back to original config?

Code:
[root@blak ~]# yum repolist all
Loaded plugins: refresh-packagekit
repolist: 0
[root@blak ~]# yum clean all
Loaded plugins: refresh-packagekit
Cleaning up Everything
[root@blak ~]# rpm --rebuilddb
[root@blak ~]# yum update
Loaded plugins: refresh-packagekit
Setting up Update Process
No Packages marked for Update
[root@blak ~]# yum repolist all
Loaded plugins: refresh-packagekit
repolist: 0
 
Old 02-22-2009, 07:00 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Welcome to LQ!
Will you post the output of /etc/yum.repos.d/?

Last edited by alan_ri; 02-22-2009 at 07:01 AM.
 
Old 02-22-2009, 11:20 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
i've been editing my repo files on /etc/yum.repo.d/ couple of days back to install packages from the Fedora DVD
Why the install dvd is the old rpm's that do not have the updates .
in the name.repo file change the " enable=0 " to "enable=1"
and HOW did you "point" them to the dvd.
 
Old 02-22-2009, 05:30 PM   #4
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by alan_ri
Will you post the output of /etc/yum.repos.d/?
/etc/yum.repo.d/ list
Code:
adobe-linux-i386.repo
rpmfusion-free-updates.repo
fedora-rawhide.repo
rpmfusion-free-updates.repo~
fedora.repo
rpmfusion-free-updates-testing.repo
fedora.repo~
rpmfusion-nonfree-rawhide.repo
fedora-updates.repo
rpmfusion-nonfree.repo
fedora-updates.repo~
rpmfusion-nonfree.repo~
fedora-updates-testing.repo
rpmfusion-nonfree-updates.repo
rpmfusion-free-rawhide.repo
rpmfusion-nonfree-updates.repo~
rpmfusion-free.repo
rpmfusion-nonfree-updates-testing.repo
rpmfusion-free.repo~
Quote:
Originally Posted by John VV View Post
Why the install dvd is the old rpm's that do not have the updates .
in the name.repo file change the " enable=0 " to "enable=1"
and HOW did you "point" them to the dvd.
... because i'm on dialup speed atm... it will take for-ever to install through the net...

i pointed repo to dvd by adding "baseurl=file///path/to/dvd/" on fedora.repo and disabling mirrors which i re-enabled after the installations
 
Old 02-22-2009, 05:57 PM   #5
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Run
Code:
yum clean all && yum clean metadata && yum clean dbcache && yum makecache && yum update
If there are any errors,post the output of above command.
 
Old 02-22-2009, 06:32 PM   #6
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Code:
[root@blak yum.repo.d]# yum clean all && yum clean metadata && yum clean dbcache && yum makecache && yum update
Loaded plugins: refresh-packagekit
Cleaning up Everything
Loaded plugins: refresh-packagekit
0 metadata files removed
0 sqlite files removed
0 metadata files removed
Loaded plugins: refresh-packagekit
0 sqlite files removed
Loaded plugins: refresh-packagekit
Metadata Cache Created
Loaded plugins: refresh-packagekit
Setting up Update Process
No Packages marked for Update
[root@blak yum.repo.d]# yum repolist all
Loaded plugins: refresh-packagekit
repolist: 0
[root@blak yum.repo.d]#
i'm think my repo files are fine... i think what has broken is somewhere else
now when i had the repositories pointing at the DVD only i think i ran "yum update"

i'm assuming this could've altered something somewhere else, i don't know.... i just hope this is fixable because i don't want to go through another re-installation process - especially when i have done alot of updating on this machine and specifically because i'm on dialup speed
 
Old 02-22-2009, 06:39 PM   #7
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Please post once again output of /etc/yum.repos.d/,but not list,just the output and tell us how did you disabled the repos at first and enabled them later.

Last edited by alan_ri; 02-22-2009 at 06:44 PM.
 
Old 02-22-2009, 06:56 PM   #8
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by alan_ri View Post
Please post once again output of /etc/yum.repos.d/,but not list,just the output and tell us how did you disabled the repos at first and enabled them later.
i don't get what you mean by posting output of /etc/yum.repo.d/

i manually went through each repo file and changed enabled=1 to enabled=0 under the mirrorlist and on the fedora.repo file i added baseurl=file:///path/to/dvd/

i installed the softwares that i needed then changed the repo files back to enabled=1 and ofcourse remove my baseurl=file:///path/to/dvd/ line

i think i ran "yum update" while the fedora.repo was pointing at the dvd, i'm not sure if this had affected yum but yeah...

is there a way of reinstalling yum? without re-installing the whole OS?
 
Old 02-22-2009, 07:04 PM   #9
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by manuleka View Post
i don't get what you mean by posting output of /etc/yum.repo.d/
I mean that we can't see lines like enable=0,URL and all that usually is in that file.

Last edited by alan_ri; 02-22-2009 at 07:09 PM.
 
Old 02-22-2009, 07:07 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
that depends on whether you ALSO updated the system from the net BEFORE you ran " yum update" from the dvd ( by the way this will DO NOTHING except overwright any new rpm's with the orig. install rpm's and breaking things )
just reinstall , that is THE fastest and easiest thing to do .
 
Old 02-22-2009, 07:27 PM   #11
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by alan_ri View Post
I mean that we can't see lines like enable=0,URL and all that usually is in that file.
here's fedora.repo
Code:
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
fedora-updates.repo:
Code:
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo]
name=Fedora $releasever - $basearch - Updates - Debug
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

Last edited by manuleka; 02-22-2009 at 07:30 PM.
 
Old 02-22-2009, 07:46 PM   #12
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
First thing to do is to remove # sign wherever it is in the outputs above,also do this for rpm.fusion repos and put # sign in front of failovermethod=priority and change enable=0 to enable=1 where necessary then run command I've posted before.

Last edited by alan_ri; 02-22-2009 at 07:57 PM.
 
Old 02-22-2009, 08:09 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well you are missing the "mirrorlist"
your error is in red
Quote:
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
should be
Quote:
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
... the rest of the file...
sometimes it is needed to use the baseurl and not the mirrorlist
remove the # as alan_ri posted
 
Old 02-22-2009, 08:20 PM   #14
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Yeah,John VV is right,correct that red line,I was in a hurry,I wasn't careful,my bad.
 
Old 02-22-2009, 08:52 PM   #15
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by alan_ri View Post
Yeah,John VV is right,correct that red line,I was in a hurry,I wasn't careful,my bad.
still the same result...

Quote:
Originally Posted by John VV
that depends on whether you ALSO updated the system from the net BEFORE you ran " yum update" from the dvd ( by the way this will DO NOTHING except overwright any new rpm's with the orig. install rpm's and breaking things )
just reinstall , that is THE fastest and easiest thing to do
so what you are saying - i could've installed an older yum version ontop of the more uptodate one already on my system?

if so - shouldn't yum recognize the fact that from the DVD it's an older version? or a version with older update?
 
  


Reply



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
not getting the latest packages with rsync from a public fedora repo Yaniv-Fer Linux - General 2 11-05-2008 11:23 AM
yum & yumex hanging while fedora-updates repo is active DarkSun84 Fedora 7 12-03-2007 05:28 PM
Yum core repo baseurl issue ian0115 Linux - Software 1 07-03-2006 01:08 AM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM
using yum for extra packages beowulf405 Fedora 1 06-21-2004 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 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
Open Source Consulting | Domain Registration