2

Hoping someone can help me here with this issue I'm having. Wine isn't working on my Ubuntu 14.04LTS so I want to completely remove it and install from the software manager

Code I'm using is as follows

sudo apt-get purge wine

Which shows

wine            wine1.6         wine1.6-amd64   wine1.6-i386    wine-gecko2.21  wine-gecko2.34  wine-mono0.0.8  wine-mono4.5.4  winetricks

So When I go to unistall using

sudo apt-get remove wine1.6 --purge --no-install-recommends

It uninstalls wine1.6 all fine but also then installs another version

The following NEW packages will be installed


wine1.8 wine1.8-amd64 wine1.8-i386:i386

My question is how can I prevent wine1.8 from being installed as I want wine removed completely. Sorry if this is really simple I'm new to ubuntu and learning slowly

Thanks, Youlethal

4 Answers4

4

I think your first command is only purging the wine package, which is just a dependency for the others.

sudo apt-get purge "^wine.*"

should purge every package on your system starting with the word 'wine'.

Note that apt-get uses regular expressions for pattern matching, hence the ^ and .*

sedgi
  • 51
2

Simply running

sudo apt remove --purge wine*

should remove the wine packages and not result in any additional installations.

Sidenotes

  • * is acting as wildcard here
  • apt and apt-get are similar commands - while they are not 1:1 the same. apt seems to be the future.
  • --purge results in removing the user-related configs as well and not just the package itself
dufte
  • 14,198
  • 5
  • 41
  • 43
1
purge remove

will remove about everything regarding the package packagename, but not the dependencies established during installation.

sudo apt-get purge --auto-remove [packagename]

This will remove the package along with the configuration files and dependencies.

You may like to have a walk through following links:

How to completely remove any program and its installation files?

What is the correct way to completely remove an application?

1

In my case, after conducting

sudo apt-get remove wine

Wine still appear in a dash. So I tried:

sudo apt-get purge wine

Which gave me an output:

The following packages were automatically installed and are no longer required: (...)
Use 'sudo apt autoremove' to remove them.

So when you get to this point, then you can run this command:

sudo apt-get autoremove

When I did that, wine disappeared from the dash.

Eliah Kagan
  • 119,640
bombelsky
  • 123