2

I installed Heroku using

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

Please tell me how to uninstall Heroku.

Dagelf
  • 1,105
  • 11
  • 17
Vinayak Garg
  • 289
  • 1
  • 6
  • 13
  • 3
    To anyone: 1 of the easiest method to -completely- -brick- your system is to run scripts from the web. NEVER EVER do things like this without analyzing the script and understanding what you are doing. I would rather you post the script here and have confirmed what it does that to just execute it and ask afterwards what to do ;) – Rinzwind Apr 26 '13 at 10:01

2 Answers2

7

So I downloaded the script and it seems that all it does is insert its own repository URL into your sources list and then uses the apt-get package manager to install it.

To remove, it is really simple, just open up a terminal and type:

sudo apt-get remove heroku-toolbelt

Also, as a word of warning, try not to use scripts written by others to install applications. Some of them can contain extremely dangerous commands which could cause irreversible damage to your data. If you are unsure how to install an application, you can always search Ask Ubuntu for similar questions and answers.

somoso
  • 668
  • 3
  • 16
  • 2
    Link to script: https://toolbelt.heroku.com/install-ubuntu.sh – Rinzwind Apr 26 '13 at 09:55
  • 2
    Thanks! That worked. I will take care to read script before running it. – Vinayak Garg Apr 26 '13 at 10:00
  • 1
    @VinayakGarg good... I still added a warning though... if this was actual malware you could have in real trouble... – Rinzwind Apr 26 '13 at 10:02
  • It cannot be stressed enough how dangerous it is to run random scripts from the internet without checking the contents of the script. All it would have took was one line of "rm -rf /" in between the sudo sh < – somoso Apr 26 '13 at 10:06
1

If you have installed the snap version of Heroku, you can do this:

snap remove heroku

Be sure to make a backup of your configuration if you will need it again.

matigo
  • 20,403
  • 7
  • 43
  • 70
  • thanks, I still have `/dev/loop1 119552 119552 0 100% /snap/core/14447` do I need to unmount or something too? – SeanJ Feb 15 '23 at 12:59