LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-31-2006, 11:03 PM   #1
saquib
LQ Newbie
 
Registered: Mar 2006
Location: Dhaka
Distribution: Fedora Core 5
Posts: 11

Rep: Reputation: 0
Exclamation Uninstalled Yum, How to re-install?


Im using FC4 with 2.6.15 core. Im really new in linux. Yum has helped me a lot to install may programs. Two days ago, while i was dwnloading through yum, the electricity went out - and when i switched on my pc and ran yum, yum started to act vey starngely!

First of all, when i type in somethign like "yum install yumex" it will start as always, but this file while downloading called something like primary.tar.gz , it will be 100% completed, then downlaod agian, then downlaod again, and keeps on doing it forever!!! the files are mostly same everytime, howvere sometimes its ike a few kB more or less. anyways, having no other way out of this, i uninstalled yumex frst, then using the "-nodeps" i also unsintalled yum (ouch!).

i have downlaoded a .src.rpm file form yum's ite but cant install. im extremely new on linux and its commands, so please provide me detailed step by step info on how to install yum again and also if i need any new "python" version or anything how to install them.

lasy but not least, wud re-installing yum solve the problmem for which i uninstalled it at teh first place? (just to mention, a friend of mine was telling me that that primary.tar.gz file if deleted form my local disk at teh first place, then the whole problem cud be fixed... wud it work, and if so, how to do so?)

Thanx a lot in advance.

Last edited by saquib; 03-31-2006 at 11:05 PM.
 
Old 04-01-2006, 02:24 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
yum upgrade yum?
yum install yum

yum clean all?

You've removed yum? (yum remove yum?)

Hmmm... well, installing yum from somewhere would probably be the first bet. I guess you could use up2date? Or just the rpm (the one on the install disk may have dependency trouble as the depends will have been updated to unexpected versions by now. No harm trying...)

Then do the yum clean all part.
Then try a yum upgrade yum perhaps.
Then yum install... something.
 
Old 04-01-2006, 04:22 AM   #3
xaxol
Member
 
Registered: Aug 2003
Location: Antelope, CA
Distribution: Ubuntu 9.04
Posts: 90

Rep: Reputation: 15
I have not tested this as I do not have FC4 (I actually suggest upgrading to FC5) but anyhow:

The file you have *.src.rpm is a source file. This is essentially the uncompiled source code for the program. It is possible to compile it yourself but it can be ridiculous hassle and I do not recommend it. First, I would try using up2date. As root, enter the following command:

up2date -i yum

If that works, you should then be able to issue:

rpm -q yum

to see if its installed. If not, try inserting your original installation media and use the terminal to navigate to the /RPMS/ directory on the disk (cd /mnt/cdrom/ is probably a good place to start). Once there, issue the following:

ls yum*

This should let you know whether or not the yum RPM is on that disk. If not, try the next disk until you find it. Once you locate the RPM, issue the following as root:

rpm -ivh yum*.rpm

Note: If your ls yum* returned more than 1 yum RPM (i.e. the src RPM), use the version # of the RPM instead of * (i.e. rpm -ivh yum-1.14.7-22.i386.rpm). Remember, not to install the src RPM

If you are reading this then nothing so far has worked. At this point, I would download the recent version of yum from: http://ftp.freshrpms.net/pub/freshrp...hrpms-release/

Remember to get the *.noarch.rpm NOT the *.src.rpm. Install this by issuing the following as root:

rpm -ivh yum*.rpm

Then try:

rpm -q yum

to see if it worked. Let me know what helped (if anything did).

Last edited by xaxol; 04-01-2006 at 04:29 AM.
 
Old 04-01-2006, 08:14 AM   #4
saquib
LQ Newbie
 
Registered: Mar 2006
Location: Dhaka
Distribution: Fedora Core 5
Posts: 11

Original Poster
Rep: Reputation: 0
Arrow

thanks so much! yess i finally got yum re-installed!! i inserted the disc, and manually browsed in the cd's RPMs folder. luckily the rpm u've asked me to search for was in the first disc!

now, back to the second problem. actually this is the main problem why i tried uninstalling yum. anything i want to do with yum, yum update, or yum install "software name" - its says something like respitory metadat from local files or something, then "primary.xml.gz" this files keeps on downlading... the sizes are often similar or close, it hardly stops, sometimes it may go as many as 20 - 30 times. a preview of this situation is in the attached screenshot, how can i fix this??

u can undstand the whole situation if u just download this screenshot. i cudnt find a way to attach, so im sharing it here. please have a look. i really need yum to get working again....

http://www.4shared.com/dir/305268/946ee801/sharing.html
 
Old 04-01-2006, 08:46 AM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Your link to 4shared seems to want a userid and password before it will display anything.

Anyhow, I suspect your "problem" may be that your /etc/yum.repos.d/ files may not be set up properly. If you tell us which repositories you're using -- or even post the contents of your *.repo files here -- perhaps we could offer some suggestions.

The reason you are getting "repeated" downloads is, I think, that you're getting errors, or that the repositories are being updated, and yum is searching the mirrors for a good download. The "setup" problem I suspect is that you mirror lists may be sending you to "hard to download from" places.

For what its worth (note that I'm in North America), my FC4 repository files are like this:
Code:
[base]
name=Fedora Core $releasever - $basearch - Base
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[extras]
name=Fedora Extras $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras
        ftp://limestone.uoregon.edu/fedora/extras/$releasever/$basearch
        ftp://fedora.bu.edu/extras/$releasever/$basearch
	ftp://mirrors.kernel.org/fedora/extras/$releasever/$basearch
	ftp://ftp.muug.mb.ca/pub/fedora/linux/extras/
	ftp://mirror.hiwaay.net/redhat/fedora/linux/extras/
	ftp://mirror.phy.olemiss.edu/fedora/extras/
	ftp://fedora.mirrors.tds.net/pub/fedora-core-extras/$releasever/$basearch
	ftp://mirror.cpsc.ucalgary.ca/mirror/fedora/linux/extras/
	ftp://ftp.gtlib.gatech.edu/pub/fedora.redhat/linux/extras/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[kde-redhat-stable]
name=kde-redhat-stable
mirrorlist=http://apt.kde-redhat.org/apt/kde-redhat/fedora/$releasever/$basearch/stable/mirrors
gpgcheck=1
gpgkey=http://apt.kde-redhat.org/apt/kde-redhat/kde-redhat.RPM-GPG-KEY
enabled=1

[kde-redhat-stable-all]
name=kde-redhat-stable-all
mirrorlist=http://apt.kde-redhat.org/apt/kde-redhat/all/stable/mirrors
gpgcheck=1
gpgkey=http://apt.kde-redhat.org/apt/kde-redhat/kde-redhat.RPM-GPG-KEY
enabled=1

[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.lvn/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna

[dag]
name=Dag
baseurl=http://dag.freshrpms.net/fedora/4/en/i386/dag/
 http://apt.sw.be/dries/fedora/fc4/$ARCH/dries/RPMS
 http://archive.cs.uu.nl/mirror/dag.wieers/dries/fedora/fc4/$ARCH/dries/RPMS
 http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/dries/fedora/fc4/$ARCH/dries/RPMS
 http://ftp-stud.fht-esslingen.de/dag/dries/fedora/fc4/$ARCH/dries/RPMS
 http://mirror.cpsc.ucalgary.ca/mirror/dag/dries/fedora/fc4/$ARCH/dries/RPMS
 http://mirrors.ircam.fr/pub/dag/dries/fedora/fc4/$ARCH/dries/RPMS
 http://rh-mirror.linux.iastate.edu/pub/dag/dries/fedora/fc4/$ARCH/dries/RPMS
 http://rpmfind.net/linux/dag/dries/fedora/fc4/$ARCH/dries/RPMS
 http://wftp.tu-chemnitz.de/pub/linux/dag/dries/fedora/fc4/$ARCH/dries/RPMS
 http://www.mirrorservice.org/sites/apt.sw.be/dries/fedora/fc4/$ARCH/dries/RPMS
gpgcheck=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
enabled=1

[newrpms]
name=Fedora Core 4 NewRPMS.sunsite.dk
baseurl=http://newrpms.sunsite.dk/apt/redhat/en/$basearch/fc$releasever
gpgcheck=0
gpgkey=http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
enabled=1

Last edited by PTrenholme; 04-01-2006 at 08:48 AM.
 
Old 04-01-2006, 10:34 AM   #6
saquib
LQ Newbie
 
Registered: Mar 2006
Location: Dhaka
Distribution: Fedora Core 5
Posts: 11

Original Poster
Rep: Reputation: 0
Kindly try this direct link:
http://dc9.4shared.com/download/1139...sId=eFpzC3gPNh

<OR> in that linked page, DO NOT click on the file name, there's a small downlaod icon on far right, use that! ud be taken to another page with the screen shot, below ud see a "Download" button, just click that and the image should load!

Im using all the cnfigurations from the "Unofficial Fedora FAQ" site. Can i just somehow easily erase or use some other config and start using yum? I am hoping for some easy soluttion to fix this actually, not that experienced yet as you can see.
 
Old 04-01-2006, 02:24 PM   #7
xaxol
Member
 
Registered: Aug 2003
Location: Antelope, CA
Distribution: Ubuntu 9.04
Posts: 90

Rep: Reputation: 15
Sorry for the previous post ...I did not look at your screenshot closely. Try running:

yum clean all

yum makecache

yum -y update

Last edited by xaxol; 04-01-2006 at 03:33 PM.
 
Old 04-01-2006, 04:58 PM   #8
xaxol
Member
 
Registered: Aug 2003
Location: Antelope, CA
Distribution: Ubuntu 9.04
Posts: 90

Rep: Reputation: 15
Maybe also try commenting out the livna repositories in your yum.conf. This is done by simply inserting a hash (#) at the beginning of each line. Once that is done try:

yum clean all

yum makecache

yum -y update
 
Old 04-02-2006, 06:40 AM   #9
saquib
LQ Newbie
 
Registered: Mar 2006
Location: Dhaka
Distribution: Fedora Core 5
Posts: 11

Original Poster
Rep: Reputation: 0
err... still showing errors...... its like this:

[root@localhost hussain]# yum clean all
Cleaning up Everything
0 headers removed
0 packages removed
6 metadata files removed
0 cache files removed
0 cache files removed

[root@localhost hussain]# yum makecache
Making cache files for all metadata files.
This may take a while depending on the speed of this computer
Setting up repositories
livna 100% |=========================| 951 B 00:00
updates-released 100% |=========================| 951 B 00:00
rpmforge 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
primary.xml.gz 100% |=========================| 257 kB 00:25
primary.xml.gz 100% |=========================| 230 kB 00:22
primary.xml.gz 100% |=========================| 257 kB 00:28
primary.xml.gz 100% |=========================| 262 kB 00:25
Error: failure: repodata/primary.xml.gz from livna: [Errno 256] No more mirrors to try.
[root@localhost hussain]# yum -y update
Setting up Update Process
Setting up repositories
livna 100% |=========================| 951 B 00:00
updates-released 100% |=========================| 951 B 00:00
rpmforge 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 262 kB 00:25
primary.xml.gz 100% |=========================| 257 kB 00:22
primary.xml.gz 100% |=========================| 230 kB 00:23
primary.xml.gz 100% |=========================| 257 kB 00:26
Error: failure: repodata/primary.xml.gz from livna: [Errno 256] No more mirrors to try.


how do i find the yum.conf. file? where is it stored by default?? and should i add a HASH sign infront of ALL thelines in that file??
 
Old 04-02-2006, 12:42 PM   #10
austerhaus
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Rep: Reputation: 0
To open your yum config file, type the following as root:

gedit /etc/yum.conf

This opens your yum.conf in gedit. If you don't mind, copy and paste the contents into a new post in this thread so we can take a look at it.
 
Old 04-02-2006, 11:18 PM   #11
saquib
LQ Newbie
 
Registered: Mar 2006
Location: Dhaka
Distribution: Fedora Core 5
Posts: 11

Original Poster
Rep: Reputation: 0
Arrow contents of my yum.conf

Here it is:


# Note: This file is no longer the entire yum configuration
# for fedorafaq.org. See http://www.fedorafaq.org/#yumconf
# for details on how to set up your system with the new
# yum configuration.

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
# We don't want to gpg-check local, unsigned packages
#gpgcheck=1
# Changed this because some mirrors go down and then
# re-trying takes forever.
retries=1
timeout=10

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
 
Old 04-11-2006, 11:55 PM   #12
austerhaus
LQ Newbie
 
Registered: Apr 2006
Posts: 6

Rep: Reputation: 0
are you still having an issue with this?
 
Old 04-12-2006, 08:40 AM   #13
saquib
LQ Newbie
 
Registered: Mar 2006
Location: Dhaka
Distribution: Fedora Core 5
Posts: 11

Original Poster
Rep: Reputation: 0
yeah! .. cant i just simply delete all kinds og configuration files and cleanly remove yum, and do a fresh reinstall like it would be at first??
 
Old 04-12-2006, 09:15 AM   #14
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by saquib
Error: failure: repodata/primary.xml.gz from livna: [Errno 256] No more mirrors to try.
... you havn't followed the following advise:
Quote:
Originally Posted by xaxol
try commenting out the livna repositories in your yum.conf
... why not?

Comment out the livna repo in yum.conf (are you using the yum.conf from www.fedorafaq.org?) ... then install yum extender (read the rest of the faq). This is a gui which will let you manipulate much of the things yum does. I think you'll find this simpler.

You could uninstall yum using rpm ... it will probably even remove the yum.conf file, then reinstall... then install the fedora faq yum.conf, then edit out livnia ... but this is what you're supposed to have done already.
 
  


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
FC4: Uninstalled python mistakenly - Yum too mailforbiz Linux - Newbie 4 01-25-2006 02:28 AM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM
uninstalled Mandrake10 Haggis56 Linux - Newbie 2 01-12-2005 07:30 PM
Uninstalled linux on laptop but can't re-install windows! kanzure Linux - Laptop and Netbook 4 03-15-2004 03:12 PM
Can UP2DATE be uninstalled? How exactly??? jdruin Linux - Software 5 10-22-2003 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:08 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