Reputation: 661
My current installed SBT is corrupted and I want to reinstall it. The problem is I didn't install SBT through sudo apt-get
command. I followed the tutorial here: Functional Programming Principles in Scala | Coursera.
Instructions that I followed from the webpage:
~/.bashrc
in a text editor (create it if it doesn’t exist), and add the following line export PATH=/PATH/TO/YOUR/sbt/bin:$PATH
So how do I uninstall SBT on Ubuntu in the first place?
I tried running sudo apt-get remove sbt
but it didn't work. These are the results of sudo apt-get remove sbt
:
$ sudo apt-get remove sbt Reading package lists... Done Building dependency tree Reading state information... Done Package 'sbt' is not installed, so not removed The following packages were automatically installed and are no longer required: ax25-node libax25 libossp-uuid16 openbsd-inetd Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 324 not upgraded.
Upvotes: 3
Views: 10424
Reputation: 5872
Open the file ~/.bashrc in an editor (create it if it doesn’t exist) and add the following line export PATH=/PATH/TO/YOUR/sbt/bin:$PATH
The path to your sbt/bin is already stored in your ~/.bashrc file. If you know the path to sbt/bin, you can delete the sbt directory and its contents manually from the terminal using sudo rm -r ./sbt/
from where you unpacked it.
Afterwards delete the obsolete export PATH=/PATH/TO/YOUR/sbt/bin:$PATH
line from your ~/.bashrc
file.
Upvotes: 3