7

I was playing around to set up a prober working/development environment.

I installed command line tools such as:

  • NodeJS
  • NPM
  • Grunt
  • Bower

Where can I find those tools and how can I delete them? Is there any routine?

2
  • 1
    The default of all reasonable command line tools is under /usr/local. If you use a package manager then in that package manager's directory (comment re reasonable is that there are some badly behaved ones e.g. mono)
    – mmmmmm
    Commented Dec 16, 2013 at 21:00
  • Other than searching your whole filesystem and deleting individual files/dirs, the only answer is "it varies depending on how you installed them". The ultimate point of software is that it can do arbitrary things, and that includes the code that does installations. Some tools might not give you proper info, but (especially for dev tools) I would say the significant majority either have clear output, human-readable scripts, or basic online documentation about it. Commented Oct 11 at 20:06

2 Answers 2

7

The whereis command only looks in the standard executable paths. Try which bower instead. Here's an example from my machine. I used "git" because I don't have "bower" installed.

~ 506 whereis git
/usr/bin/git
~ 507 which git
/opt/local/bin/git

whereis returned the path of the system-installed version of "git". which returned the path of the version that actually runs when I type "git" at the command line.

3

Since they're all command line tools, you can find them using whereis <tool> or where <tool>. Many command line tools can be removed simply by deleting the file found at this location, however they may leave configuration files at various locations about your system. You can usually find a full guide on uninstalling a command line tool and its associated files by searching the website of the tool that you wish to uninstall.

6
  • it returns nothing... no path or sth! of course i installed commands which i forget about, is there a way of find them? any standard-directory?
    – ohboy21
    Commented Dec 16, 2013 at 17:52
  • @2DD8847 Are you typing the exact name of the tool equal to what you type in Terminal to use the tool?
    – grg
    Commented Dec 16, 2013 at 17:54
  • When i type 'bower' for example, i'm getting an info page of the how-to-using, when i tyoe 'whereis bower', i get nothing...
    – ohboy21
    Commented Dec 16, 2013 at 18:58
  • bash command not found
    – ohboy21
    Commented Dec 16, 2013 at 19:02
  • 'whereis ls' works...
    – ohboy21
    Commented Dec 16, 2013 at 19:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .