2

I tried to remove wine from the terminal using :

apt-get remove wine

but wine still exists. How can I remove it completely?

harsh@harsh-BOOK:~$ sudo get-apt purge Q4Wine
[sudo] password for harsh: 
sudo: get-apt: command not found
harsh@harsh-BOOK:~$ sudo get-apt purge wine
sudo: get-apt: command not found
harsh@harsh-BOOK:~$ sudo rm wine
rm: cannot remove ‘wine’: No such file or directory
harsh@harsh-BOOK:~$ sudo rm q4wine
rm: cannot remove ‘q4wine’: No such file or directory
harsh@harsh-BOOK:~$ sudo rm winetricks
rm: cannot remove ‘winetricks’: No such file or directory
TheWanderer
  • 19,525
  • 12
  • 52
  • 65
harsh
  • 121

3 Answers3

8

You used get-apt instead of apt-get.

rm is for removing files, not packages.

A.B.
  • 92,125
bmclain
  • 133
5

The command is:

sudo apt-get purge wine

You had written get-apt by mistake, as highlighted by the error code.

Arronical
  • 20,241
4

The Command to remove wine package is:

sudo apt-get remove --purge wine

But the ~./wine directory is still kept, and it contains all your installed wine applications and settings. Remove this folder and all its contents with this command:

rm -rf ~/.wine
Thomas Ward
  • 78,878
Neil
  • 4,585