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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-22-2009, 05:59 AM
|
#1
|
|
Member
Registered: Feb 2009
Posts: 114
Rep:
|
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
|
|
|
|
02-22-2009, 07:00 AM
|
#2
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
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.
|
|
|
|
02-22-2009, 11:20 AM
|
#3
|
|
Guru
Registered: Aug 2005
Posts: 9,693
|
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.
|
|
|
|
02-22-2009, 05:30 PM
|
#4
|
|
Member
Registered: Feb 2009
Posts: 114
Original Poster
Rep:
|
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
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
|
|
|
|
02-22-2009, 05:57 PM
|
#5
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
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.
|
|
|
|
02-22-2009, 06:32 PM
|
#6
|
|
Member
Registered: Feb 2009
Posts: 114
Original Poster
Rep:
|
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 
|
|
|
|
02-22-2009, 06:39 PM
|
#7
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
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.
|
|
|
|
02-22-2009, 06:56 PM
|
#8
|
|
Member
Registered: Feb 2009
Posts: 114
Original Poster
Rep:
|
Quote:
Originally Posted by alan_ri
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?
|
|
|
|
02-22-2009, 07:04 PM
|
#9
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
Quote:
Originally Posted by manuleka
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.
|
|
|
|
02-22-2009, 07:07 PM
|
#10
|
|
Guru
Registered: Aug 2005
Posts: 9,693
|
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 .
|
|
|
|
02-22-2009, 07:27 PM
|
#11
|
|
Member
Registered: Feb 2009
Posts: 114
Original Poster
Rep:
|
Quote:
Originally Posted by alan_ri
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.
|
|
|
|
02-22-2009, 07:46 PM
|
#12
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
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.
|
|
|
|
02-22-2009, 08:09 PM
|
#13
|
|
Guru
Registered: Aug 2005
Posts: 9,693
|
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
|
|
|
|
02-22-2009, 08:20 PM
|
#14
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
Yeah,John VV is right,correct that red line,I was in a hurry,I wasn't careful,my bad.
|
|
|
|
02-22-2009, 08:52 PM
|
#15
|
|
Member
Registered: Feb 2009
Posts: 114
Original Poster
Rep:
|
Quote:
Originally Posted by alan_ri
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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:38 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|