6

I've installed Popcorn Time using the following command:

cd
wget https://raw.github.com/hotice/webupd8/master/popcorn-build
chmod +x popcorn-build
./popcorn-build

that I found here.

How can I uninstall it?

MrVaykadji
  • 5,875
  • 2
  • 32
  • 55
user246185
  • 1,047
  • 4
  • 10
  • 14
  • This will involve a lot of command line stuff, there is no easy way to uninstall, are you sure you need to? Any particular reason not to just leave it alone? – terdon Mar 19 '14 at 23:28

1 Answers1

11

Since this is my script (rewritten a bit by Webupd8's Andrew), this should work :

  • uninstalling Popcorn Time :

    sudo rm -r /opt/Popcorn-Time
    sudo rm /usr/share/pixmaps/popcorntime.png
    sudo rm /usr/share/applications/popcorn-time.desktop
    sudo rm /usr/bin/popcorn-time
    
  • remove the NodeJS

    sudo add-apt-repository -r ppa:chris-lea/node.js
    sudo apt-get remove nodejs
    sudo rm /usr/bin/node
    
  • remove Ruby :

    • if 12.04 : sudo apt-get remove rubygem

    • if 13.04 or higher : sudo apt-get remove ruby-compass

  • remove Git, NPM :

    sudo apt-get remove git npm
    
  • remove 'libudev' symlink :

    • if 32 bits : sudo rm /lib/i386-linux-gnu/libudev.so.0

    • if 64 bits : sudo rm /lib/x86_64-linux-gnu/libudev.so.0


Once it's done, you can clean up :

sudo apt-get autoremove -y
sudo apt-get autoclean
sudo apt-get update
MrVaykadji
  • 5,875
  • 2
  • 32
  • 55
  • +1 for answering this! However, I was reading through your script and it also does things like installing a ppa which should maybe be undone, it also installs ruby-compoass (or compass if the OP is on 12.04), git, it runs npm install -g grunt-cli and creates links in /lib for libudev and perhaps other things, I only glanced at it. Could you add instructions on how to revert those steps too please? – terdon Mar 19 '14 at 23:44
  • Apparently npm doesn't include a remove option, so I'm guessing all installed dependencies through it will be remove along with it. I edited looking at the modified script, so I think now the machine would be clean of all modifications. – MrVaykadji Mar 20 '14 at 00:04
  • 1
    And I'd love to give you a second upvote but... Thanks! – terdon Mar 20 '14 at 00:10