LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Yum redo needed (https://www.linuxquestions.org/questions/fedora-35/yum-redo-needed-535360/)

Lsatenstein 03-07-2007 07:58 AM

Yum redo needed
 
I have a need, after doing a yum install of a package, to discover that I needed to do it again. Trying the uninstall and then a reinstall is not feasable.

Did I miss something in checking the yum documentation where there is a parameter for yum to allow it to do a reinstall?


I would like the reinstall to do it in a safe way. (Not to do it if there are new conflicts, but do replace co-requisites, and some earlier prerequisites).

Help.

Leslie

Junior Hacker 03-08-2007 04:19 AM

What exactly did you install that gave you errors?, and what are the errors?
Posting them will definitely help, Fedora does have it's dependency issues, but I usually can find a way around them. For some examples, read my posts in this thread:

http://www.linuxquestions.org/questi...d.php?t=526377

The last post I mentioned how I had three updates after installing Amarok that gave me a big list of these conflict errors. I had to remove Amarok and all it's long list of dependencies, then apply the update packages via command line using their full package name before re-installing Amarok to circumvent the errors.

Lsatenstein 03-08-2007 06:26 PM

One can always do stupid things at times. I had a file system full, so I decided to delete some unused programs... And I did.. as well as some large log files.

Then I thought, I would like to use rpm to uninstall the application to which the programs belonged, but when I ran rpm, it failed, because some of the programs are no longer there.

Then I thought, if I can force a reinstall, it will overwrite the same stuff again, and replace the deleted stuff. When nothing would be missing I could then use rpm to uninstall cleanly, and to remove the invalid entry from the rpm repository.

No such luck.

Junior Hacker 03-08-2007 07:20 PM

One sometimes feels like pointing that out, but one also tends to be careful not to insult another. :p

At this point you can do one of two things:
1: Read "man rpm" , you can query the package to see what it all depends on, then query which packages (depends) are installed and which are missing. You may be able to fix it by yum installing the missing packages, or by yum removing what's left so you can start from scratch.
2: Re-install

EDIT: You can more than likely query with yum also, may be advantageous to read man yum also.

PTrenholme 03-08-2007 08:20 PM

Look at the smart package manager. It does have a “reinstall” option.

You can get it via a yum install smart from the extras repository. You should also get the smart configuration file for Fedora, since configuring repositories in smart is a real pain. The command for that is yum install fedora-package-config-smart.

<edit>
Oh, if you like GUI applications, smart has a GUI, too: yum install smart-gui, which you can start by smart --gui.

Note also that, like yum, you need to be running as root to run smart.
</edit>

Lsatenstein 03-09-2007 06:03 PM

Have downloaded and configured same. Interesting. I have not tried to do a refresh with it. It seems to do what yum or yumex does. Nothing more or less.

Of course, I may be wrong....

Lsatenstein 03-09-2007 06:03 PM

Have downloaded and configured same. Interesting. I have not tried to do a refresh with it. It seems to do what yum or yumex does. Nothing more or less.

Of course, I may be wrong....


All times are GMT -5. The time now is 01:19 AM.