10

What is the -bash command to list all the packages installed locally on my machine?

I am using osX.

I tried the following so far:

  1. dpkg -l - doesn't work.
  2. apt --installed list - doesn't work.
  3. pkgutil --pkgs - lists only those installed with Apple installer. I need all those installed with npm.
  4. npm list - works.
  5. npm list -g --depth=0 - works.
  6. ls `npm root -g` - works.
14

pkgutil --pkgs will list all the packages installed with Apple's installer

| improve this answer | |

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.