I recently used wine in Ubuntu 16.04 for gaming purpose but It seemed to me that minute viruses attacked on my laptop through wine, so I am using these below commands

sudo apt-get --purge wine

sudo apt-get --purge remove wine

but when I do wine --version after executing above cmds terminal shows installed wine version So do type this in terminal for removing wine completely

dpkg -l | grep wine | awk '{print $2}' | xargs sudo apt-get purge -s

but if this will not work then replace -s with -y

  • How did you install wine ? What makes you think you have a virus ? Did you run wine as root ? You should be able to simply run rm -rf ~/.wine to remove all of your wine data.
    – Panther
    Apr 26 '18 at 14:50

If You are sure you installed wine from terminal, You should run

sudo apt-get --purge wine*

If You are using playonlinux, run

sudo apt-get --purge playonlinux
  • I think you mean sudo apt-get remove --purge wine* Oct 22 '21 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.