How do I list all installed packages from the command line in bash / osX
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:
-
dpkg -l
- doesn't work. -
apt --installed list
- doesn't work. -
pkgutil --pkgs
- lists only those installed with Apple installer. I need all those installed withnpm
. -
npm list
- works. -
npm list -g --depth=0
- works. -
ls `npm root -g`
- works.
pkgutil --pkgs
will list all the packages installed with Apple's installer