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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2006, 03:06 PM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
What are the consequences of uninstalling yum?


hi. I've had a issue with yum for a few weeks and can't figure it out. Im thinking of just uninstalling it and reinstalling a newer version. Is there any harm in doing that? Like when you try to install something with yum and it says that is already installed on the system will it not know that anymore? Will the newly installed yum build all that information at the start or is that something my current yum has built up until now? The issue im having is i get an error message when trying to use it that says it can't access /etc/yum.conf so i figured reinstalling it it would rebuild a new yum.conf file. thanks for any replies in advance.
 
Old 02-01-2006, 03:40 PM   #2
accessrichard
Member
 
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156

Rep: Reputation: 30
I know this is a basic solution but it sounds more like a permissions problem on yum.conf.

If you reinstall yum, it should still be able to detect what packages are and are not installed, it probably builds a database with something like

rpm -qa

Last edited by accessrichard; 02-01-2006 at 03:42 PM.
 
Old 02-01-2006, 04:32 PM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
ls -l /etc/yum.conf
-rw-r--r-- 1 root root 255 Jan 16 04:33 /etc/yum.conf

yeah i thought it sounded like a simple permission problem as well but the permissions look alright unless yum needs to write to the file during operation. The problem occured after i tried adding some repositeries to the bottom of the yum.conf file. And even after undoing the changes i still have that problem.
 
Old 02-01-2006, 07:30 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
There is no harm in removing the yum and related stuff. Make sure you have a yum rpm for your distro on hand if you want to re-install it.
# get the yum info and remove the package using that info.
rpm -qa |grep yum
rpm -e <yum-with-numbers>

# remove the old yum cache information
rm -rf /var/cache/yum
rm /etc/yum.conf


If your distro has /etc/yum.repos.d , you could remove that also.

Then re-install yum
rpm -Uvh <yum-with-numbers.rpm>
 
Old 02-02-2006, 03:36 AM   #5
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
i ran into a slight kink. Now it says there are no repositories set up and i can't find the fedora core repo definitions on their site.
 
Old 02-02-2006, 05:54 AM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Here is the /etc/yum.conf for FC3.

Code:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d


Put these in the /etc/yum.repos.d

fedora.repo
Code:
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
fedora-extras.repo
Code:
[extras]
name=Fedora Extras - $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
enabled=1
gpgcheck=1

To import the key: 
rpm --import http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras
livna.repo

Enabling mp3 support in k3b for making audio cds which will auto run.
Code:
1. create new file /etc/yum.repos.d/livna.repo, with the following contents:

[livna-stable]
name=Livna.org Fedora Compatible Packages (stable)
baseurl= http://rpm.livna.org/fedora/4/i386/RPMS.lvn/
#baseurl= http://rpm.livna.org/fedora/3/i386/RPMS.stable
enabled=1
gpgcheck=1

2. Import the GPG-Key for livna
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

3. yum install k3b-mp3

Last edited by homey; 02-02-2006 at 05:56 AM.
 
Old 02-02-2006, 05:55 AM   #7
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
i was able to get them working by searching for the configs with fedora tracker.
 
  


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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
Software RAID: consequences of linux autodetect & persistent-superblock with reiserfs cbonar Linux - Hardware 0 01-08-2005 03:43 PM
root ftp consequences DigitalSmash Linux - Security 5 12-15-2004 03:24 AM
Turning off the PnP for SIOCSIFFLAGS error hack... Consequences? SparceMatrix Linux - Hardware 0 09-05-2004 11:02 AM
Deleting GNOME.. the consequences Stephanie Linux - General 3 01-28-2002 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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