LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I force an older rpm to install over a newer rpm of wine (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-force-an-older-rpm-to-install-over-a-newer-rpm-of-wine-147870/)

onyx 02-18-2004 11:25 PM

How do I force an older rpm to install over a newer rpm of wine
 
I installed wine 2004... and wanted to install instead wine 2003... . However I accidentally removed some of wines directories to try a manual removal. Therefore when I try to do a rpm -e on the currently installed package it tells me "Package not installed". But if I try to install the older version (2003...) from its rpm it says "A newer version of wine is currently installed" and the rpm aborts. I also tried rpm -i --force but the rpm just hung there for a while and did nothing. Is there a file in linux which I can remove the existence of a program (like windows registry) and force the rpm to install? Or rather how do I remove all traces of the old wine from the system (short of a full re-install of RedHat 9)?

coolamit78 02-19-2004 12:29 AM

Ok....you can try this out...

1. re-install wine 2004 again by this command:

rpm -ivh --force --nodeps --replacepkgs --replacefiles wine-20040213*.rpm

2. Now once installed, you can remove the new wine version with command

rpm -e wine

OR

1. you can find out the various files that are contained in the package file

by using the command

rpm -qlp wine20040213*.rpm

2. Now manually remove all these files...

3. then, install the 2003 version of wine.

Hope that will help

Regards,

amit

onyx 02-19-2004 01:14 PM

still having problems
 
Thanks for the reply. I tried both methods and didn't have much success uninstalling wine 2004* but I did force the install of wine2003* but got some symlink errors.
Wine seems to work though but now I still can't get Adobe Photoshop 6.0 to install. It keeps telling me that it can't install on windows NT4.0 even though i have set up my wine.conf file to emulate win98. Any pointers? I thought switching from wine 2004* to wine 2003* would help me run Photoshop but now I have more errors than before. With 2004* I at least got 97% through the Photoshop installation before it got to the step: Creating Directories and Files, then everthing completely locks up and I must reset the computer. When I restarted, Photoshop seemed to have installed in Program Files directory ok, but when i run $ wine Photoshop.exe a dialog box pops up and says "Successful" with the option of clicking OK. But ironically nothing seemed to be successful or OK at all because nothing happens. Again, this was before I trashed wine2004 and its directories. Now Photoshop just wont install.

coolamit78 02-19-2004 11:29 PM

Well....I cant help much here but I can only suggest that you remove the .wine sub-directory in your home directory and the wine executable /usr/bin/wine. Then install the wine version that is marked as 'stable'......

OR

There's a better product ( but commercial ) called "CrossOver Office" from Codeweavers Inc....It uses a different version of wine that is developed by this company. This version of wine is more stable and runs many windows apps including photoshop better than the winehq's version of wine. A 14 day trial version is available free for download from -

http://www.codeweavers.com/site/prod...2ff5b0f28fcce2

I have tried it sometime back and found it far better than winehq's wine. I hope you will feel the same too..

Regards,

amit

megaspaz 02-20-2004 12:44 AM

they tell you at winehq and other wine help sites that you need to uninstall the old version of wine first before installing another version of wine. there is no install over an already installed version of wine (without a lot of clean up anyway).

to uninstall an rpm from the command line, you need to get the name of the package (not to be confused with the name of the rpm file which are similar)

1. rpm -qa | grep wine
<remember the output or copy the output and paste it into the rpm -e command>

2. rpm -e <output of #1>

then go about installing the other version of wine.


All times are GMT -5. The time now is 11:54 AM.