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,395
  • 12
  • 50
  • 65
harsh
  • 111

3 Answers3

8

You used get-apt instead of apt-get.

rm is for removing files, not packages.

A.B.
  • 90,397
bmclain
  • 133
  • 1
    +1 for mentioning about rm – Ravan Dec 01 '15 at 16:54
  • i used all these commands in correct way. wine still exist. when i run wine its not open but those applications install by wine are open. give me another way to remove this entirely – harsh Dec 01 '15 at 17:27
5

The command is:

sudo apt-get purge wine

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

Arronical
  • 19,893
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
  • 74,764
Neil
  • 4,475
  • 3
  • 22
  • 34