jabranham / system-packages

Moved to gitlab
https://gitlab.com/jabranham/system-packages
GNU General Public License v3.0
39 stars 12 forks source link

system-package-list-installed-packages with brew #23

Closed ghost closed 6 years ago

ghost commented 6 years ago

When using brew, system-packages-list-installed-packages runs brew list --installed. The --installed option seems to have been removed in favor of, simply, brew list or brew ls.

$ brew list --installed
ls: illegal option -- -
usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]

From brew(1):

       list, ls [--full-name]
              List  all  installed  formulae.  If --full-name is passed, print
              formulae with  fully-qualified  names.  If  --full-name  is  not
              passed,  any other options (e.g. -t) are passed to ls which pro-
              duces the actual output.

       list, ls --unbrewed
              List all files in the Homebrew prefix not installed by Homebrew.

       list, ls [--verbose] [--versions [--multiple]] [--pinned] [formulae]
              List  the installed files for formulae. Combined with --verbose,
              recursively list the contents of all subdirectories in each for-
              mula's keg.

              If  --versions  is passed, show the version number for installed
              formulae, or only the specified formulae if formulae are  given.
              With  --multiple,  only  show  formulae  with  multiple versions
              installed.

              If --pinned is passed, show the versions of pinned formulae,  or
              only  the specified (pinned) formulae if formulae are given. See
              also pin, unpin.
jabranham commented 6 years ago

Fixed, thanks!

On Tue 20 Mar 2018 at 09:13, Mitchell notifications@github.com wrote:

When using brew, system-packages-list-installed-packages runs brew list --installed. The --installed option seems to have been removed in favor of, simply, brew list or brew ls.

$ brew list --installed
ls: illegal option -- -
usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]

From brew(1):

       list, ls [--full-name]
              List  all  installed  formulae.  If --full-name is passed, print
              formulae with  fully-qualified  names.  If  --full-name  is  not
              passed,  any other options (e.g. -t) are passed to ls which pro-
              duces the actual output.

       list, ls --unbrewed
              List all files in the Homebrew prefix not installed by Homebrew.

       list, ls [--verbose] [--versions [--multiple]] [--pinned] [formulae]
              List  the installed files for formulae. Combined with --verbose,
              recursively list the contents of all subdirectories in each for-
              mula's keg.

              If  --versions  is passed, show the version number for installed
              formulae, or only the specified formulae if formulae are  given.
              With  --multiple,  only  show  formulae  with  multiple versions
              installed.

              If --pinned is passed, show the versions of pinned formulae,  or
              only  the specified (pinned) formulae if formulae are given. See
              also pin, unpin.