Results 1 to 3 of 3
I accidently removed python and now yum is gone also can i revert back........pleas need urgent help.....or is there a way to get both back...
- 06-09-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 19
Help how do i get YUM back
I accidently removed python and now yum is gone also can i revert back........pleas need urgent help.....or is there a way to get both back
- 06-09-2011 #2
You could try manually reinstalling python and the missing dependencies from your distributions packages. It could be time consuming, so a reinstall may be necessary.
- 06-09-2011 #3
Provided you've not broken the underlying install system (which is called rpm) it's possible to rescue your system. As daark.child says, though, it may be easier to reinstall your system, but here's the rescue process - I'll try to explain it simply.
You'll need to do most of this from the command line, so open a terminal window and do a 'su -' to give yourself root privileges.
First, ensure your rpm system is working - use 'rpm -qa', and it should list all the packages you have installed. If that's not going, then you should really do a reinstall.
If it's working, all you need to do is gather a list of the packages that were removed and add them again using the 'rpm' system. The only problem with using rpm is that is does not satisfy package dependencies, you'll have to do this yourself. But as we're about to re-install removed packages, there shouldn't be any dependency problems.
First thing you need is a list of the package files that have been uninstalled. Yum normally keeps a log of its activities - so look in /var/log - if there is no special file for yum, look for one for rpm, if that's not there check the messages file for yum's activities. It should be a list of packages by the package name, but the package files will be the name plus '.rpm'.
Once you have the file list, you need to search for the files. If you're lifting them from your original install cd or dvd, then the versions may be older than the ones you uninstalled (don't worry about that, once you have yum back you can run an update to get the latest ones). If you're not getting the files off a disk, then you need to go to one of the fedora mirrors and download the packages yourself. However you get them, put them all together in the same directory.
Once you have the files install them with:
If you didn't copy them to the same directory, then you'll have to list all the files on the command line ('rpm -ivh <package1.rpm> <package2.rpm> etc.')Code:rpm -ivh *
If it complains about missing dependencies it'll tell you the package name it needs - go and get that package from your files source (download it or get it off your original install media) and repeat the install line.
Once it's installed all the packages correctly, all should all be working normally again without the need to restart or log off and on. Test it with a 'yum list updates' from the command line. This will list any uninstalled updates - if there are any, you can apply them with 'yum update' from the same command line.Linux user #126863 - see http://linuxcounter.net/


Reply With Quote