LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2017, 09:39 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
"wine" : apt purge ... doesn't What's going on?


Running LinuxMint 18.1

I wanted to remove Wine, to either replace it with a newer version or install PlayOnLinux instad and let that manage all the Wine stuff. Wine 1.6.2 was installed.

So I went to Synaptic and did "Flag for complete removal" of the two installed packages with "wine" in there name: namely, the wine metapackage and winetricks. Removal was successful (apparently), no error messages.

But wine is still there! And the programs I installed under wine still work. So from the command line I ran: "apt purge wine" and that says wine is not installed. But it is.

winetricks appears to be gone however. But not wine, winecfg, wineboot, etc. And my desktop menu still shows all the wine stuff.

Since wine is actually a metapackage, does that mean "apt purge" won't work on it?

What the heck is going on? How to I get rid of wine so I can (cleanly) move on to PlayOnLinux or the newest wine version from WineHQ?

Thanks in advance!
 
Old 08-15-2017, 12:21 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Removing wine won't remove .wine directory in /home/username. That holds most of the wine stuff. Did you do a search in synaptic for "wine". You may have missed a package or two.
 
Old 08-15-2017, 12:47 AM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Original Poster
Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I understood from the start that all of my existing WINEPREFIX's would not be removed. I didn't expect them to be.

However, /usr/bin/wine should have been removed, and also other wine auxiliary commands found in /usr/bin. None of these were removed. The first thing I did was search Synaptic for every package with "wine" in its name that was installed. There were two found, "wine" (a metapackage) and "winetricks". I installed these myself a year ago, using Synaptic to do the install. I had synaptic remove both. And after that, Synaptic showed that they weren't installed. And "apt purge" from the command line said wine wasn't installed either. Yet, /usr/bin/wine exists. It appears that apt purge did nothing other than remove the name "wine" from the list of installed packages, all the while leaving it installed.

I have not run into this strange behavior before with other packages.

p.s. - It could be that wine just sets up a WINEPREFIX, but after that initial setup it is not part of executing .exe's there. I don't believe that's the case, but I don't know how wine works internally. But still, even if wine is nothing more than a glorified installer, I would still expect /usr/bin/wine to have been removed by apt purge.

Last edited by haertig; 08-15-2017 at 12:51 AM.
 
Old 08-16-2017, 10:42 AM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Original Poster
Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I found the problem.

Although Synaptic did NOT list any wine packages as being installed (after I did my initial purge), "dpkg-query -l" DID. dpkg listed "wine1.6". Synaptic did not list this.

Anyway, once I subsequently ran "apt purge wine1.6" then everything was as I expected it to be. Wine was finally removed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get purge "trolls" k3lt01 LQ Suggestions & Feedback 49 11-09-2013 09:13 AM
unique password for "update" and "synaptic" and "apt-get" SaintDanBert Linux - Security 1 09-17-2010 04:53 AM
Feeding the output of "diff" or "cat" command to dpkg --purge kushalkoolwal Debian 9 06-19-2008 07:27 AM
installing software with wine/crossover: It doesn't "understand" the path manosagn Linux - Newbie 1 10-02-2007 08:50 PM
"apt-get install xmltv" doesn't work Unreal7000 Linux - Software 4 06-03-2003 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration