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.
|
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 |
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. |
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> |
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.
|
Here is the /etc/yum.conf for FC3.
Code:
[main] Put these in the /etc/yum.repos.d fedora.repo Code:
[base] Code:
[extras] 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: |
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. |