LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [Kubuntu] Wine removal (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bkubuntu%5D-wine-removal-659993/)

NMY 08-02-2008 03:32 PM

[Kubuntu] Wine removal
 
Umm... here's the problem
Quote:

root@***# dpkg --list | grep wine
rc wine 1.1.2~winehq0~ubuntu~8.04-2-0ubuntu1 Microsoft Windows Compatibility Layer (Binar
root@***# apt-get remove wine
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wine is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@***#

matthewg42 08-02-2008 03:45 PM

The "rc" means that the package has been removed, but the configuration files remain.

You can use "apt-get purge <package>" to remove config files also.

Yo may find that your application menus still list applications which you have installed under wine. To remove these, delete:
Code:

~/.local/share/desktop-directories/wine-Programs*
~/.local/share/applications/wine


NMY 08-02-2008 04:30 PM

Quote:

Originally Posted by matthewg42 (Post 3234574)
The "rc" means that the package has been removed, but the configuration files remain.

You can use "apt-get purge <package>" to remove config files also.

Yo may find that your application menus still list applications which you have installed under wine. To remove these, delete:
Code:

~/.local/share/desktop-directories/wine-Programs*
~/.local/share/applications/wine


Thank you. If I could - I would pass to you a cookie

Still:
Quote:

@***$ sudo apt-get purge wine
[sudo] password
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wine is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
@***$ wine
preloader: Warning: failed to reserve range 00000000-60000000
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit
I can run wine - why?

TITiAN 08-02-2008 04:43 PM

maybe some package "winelib" or "libwine" is still installed (that exists in debian, and *ubuntu is based on debian)...
or did you maybe install wine otherwise than through apt (like a source package)?

NMY 08-02-2008 05:00 PM

I did "man wine" and I found
Quote:

FILES
/usr/local/bin/wine
The wine program loader.

/usr/local/bin/wineconsole
The wine program loader for CUI (console) applications.

/usr/local/bin/wineserver
The wine server

/usr/local/bin/winedbg
The wine debugger

/usr/local/lib/wine
Directory containing wine’s shared libraries
Quote:

:~$ ls /usr/local/bin/
function_grep.pl regsvr32 winebrowser winedbg wine-kthread wineprefixcreate winhelp
msiexec uninstaller winebuild winedump winelauncher wine-preloader wmc
notepad widl winecfg winefile winemaker wine-pthread wrc
progman wine wineconsole wineg++ winemine wineserver
regedit wineboot winecpp winegcc winepath wineshelllink
Then I've tryed uninstaller
http://img125.imageshack.us/img125/4...apshot1sn6.png

TITiAN 08-02-2008 05:05 PM

sorry but the uninstaller is for windows software installed with wine,
did you use any other installation method than the one that comes with kubuntu?

matthewg42 08-02-2008 05:43 PM

If you still have a wine executable installed, you can see what package provides it like this:
Code:

dpkg -S $(which wine)

NMY 08-02-2008 06:02 PM

Quote:

dpkg -S $(wine-0.9.49)
This did not work.

I installed un uninstalled few wine versions because I wanted to run some game but I did not succeed. I installed with apt-get, I also installed with Adept, I did compile and install older versions, one of them had ./tools/installer script.

All I want is just to remove it correctly.

Thanks

matthewg42 08-02-2008 06:06 PM

Quote:

Originally Posted by NMY (Post 3234670)
Quote:

dpkg -S $(wine-0.9.49)
This did not work.

That's not the command I suggest you run. Please follow the instructions more closely.

NMY 08-02-2008 06:33 PM

Quote:

Originally Posted by matthewg42 (Post 3234672)
That's not the command I suggest you run. Please follow the instructions more closely.

I didn't get what did you mean by "which wine"

TITiAN 08-02-2008 06:46 PM

Quote:

Originally Posted by NMY (Post 3234670)
This did not work.

I installed un uninstalled few wine versions because I wanted to run some game but I did not succeed. I installed with apt-get, I also installed with Adept, I did compile and install older versions, one of them had ./tools/installer script.

All I want is just to remove it correctly.

Thanks

So you did install it from different sources. I'm afraid uninstalling all things from wine will be a bit difficult, but there should be hints included with what you installed. In short, read files like "INSTALL" or "README" that come with the wine editions you have (except the one that comes with ubuntu - you already removed that), I hope there is something about uninstallation.
good luck with this

NMY 08-02-2008 07:10 PM

Any aditional information would be helpful - thanks

matthewg42 08-02-2008 07:14 PM

Just copy-paste into the terminal:
Code:

dpkg -S $(which wine)
"which" is a command that prints the full path of a named command (if it is installed on you system and is in the PATH).

NMY 08-03-2008 05:03 AM

Quote:

:~$ dpkg -S $(which wine)
dpkg: /usr/local/bin/wine not found.
That's what I get. I'll be trying 'make uninstall'.

matthewg42 08-03-2008 06:19 AM

It looks like wine is installed in /usr/local/... which usually means you have installed it manually - i.e. not with the package management system.

I assume you are familiar with Windows, so I'd like a draw an analogy. Lets say you get an application which is in a .zip file - there is no installer - the zip file just contains containing a .exe file and a few .dlls and data files. You unzip this in C:\myapp\. In this case you would no expect to be able to go to add/remove programs to un-install it - it has not been registered with the OS - you must manually delete it.

The same thing goes for any software which you install on a debian/ubuntu system where you do not use one of th front ends to the package management system (apt-get or aptitude or adept or synaptic and so on).

When you build software from source, it does not use the package management system. Some (but not all) projects provide a "make uninstall" target. If you have this, and remember building and installing with "make install", you should be fine to use it.

If there is no "make uninstall" target, you simply have to go and delete the files for th program. This can be a little fiddly because the file system layout means the files are split over several areas - the binary goes in <prefix>/bin, the libraries go in <prefix>/lib, and so on.

For this reason, when I am building from source, I usually set the <prefix> to be /opt/<applicationname>/

This way, everything gets installed under one directory, and if I want to get rid of it, I just delete that directory. The down-side is that the binary will not be in the PATH, and if there are libraries to load, I sometimes need to set the LD_LIBRARY_PATH. For me this is worth the effort for the clean un-install.

NMY 08-03-2008 10:03 AM

Quote:

Originally Posted by matthewg42 (Post 3235048)
It looks like wine is installed in /usr/local/... which usually means you have installed it manually - i.e. not with the package management system.

I assume you are familiar with Windows, so I'd like a draw an analogy. Lets say you get an application which is in a .zip file - there is no installer - the zip file just contains containing a .exe file and a few .dlls and data files. You unzip this in C:\myapp\. In this case you would no expect to be able to go to add/remove programs to un-install it - it has not been registered with the OS - you must manually delete it.

The same thing goes for any software which you install on a debian/ubuntu system where you do not use one of th front ends to the package management system (apt-get or aptitude or adept or synaptic and so on).

When you build software from source, it does not use the package management system. Some (but not all) projects provide a "make uninstall" target. If you have this, and remember building and installing with "make install", you should be fine to use it.

If there is no "make uninstall" target, you simply have to go and delete the files for th program. This can be a little fiddly because the file system layout means the files are split over several areas - the binary goes in <prefix>/bin, the libraries go in <prefix>/lib, and so on.

For this reason, when I am building from source, I usually set the <prefix> to be /opt/<applicationname>/

This way, everything gets installed under one directory, and if I want to get rid of it, I just delete that directory. The down-side is that the binary will not be in the PATH, and if there are libraries to load, I sometimes need to set the LD_LIBRARY_PATH. For me this is worth the effort for the clean un-install.

Thank you for your response. The 'make uninstall' did the job. Next time I'll have the balls to delete if it's necessary. :)

matthewg42 08-03-2008 11:29 AM

Quote:

Originally Posted by NMY (Post 3235160)
Thank you for your response. The 'make uninstall' did the job. Next time I'll have the balls to delete if it's necessary. :)

hehe, no worries. The rule of thumb is - is you can install with the package manager, do that. In the case of wine, they do a build of every release and package it for ubuntu/debian. You can add their repository and then just update and install wine, and you will have th latest version.

You can find details here:

http://www.ubuntu-unleashed.com/2008...in-ubuntu.html


All times are GMT -5. The time now is 12:02 AM.