LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What are the consequences of uninstalling yum? (https://www.linuxquestions.org/questions/linux-software-2/what-are-the-consequences-of-uninstalling-yum-410528/)

dr_zayus69 02-01-2006 03:06 PM

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.

accessrichard 02-01-2006 03:40 PM

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

dr_zayus69 02-01-2006 04:32 PM

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.

homey 02-01-2006 07:30 PM

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>

dr_zayus69 02-02-2006 03:36 AM

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.

homey 02-02-2006 05:54 AM

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


dr_zayus69 02-02-2006 05:55 AM

i was able to get them working by searching for the configs with fedora tracker.


All times are GMT -5. The time now is 09:30 PM.