Skip to content

pkgx list-installed #985

Closed
Closed
@felipecrs

Description

@felipecrs

I'm aiming to fully replace Homebrew with pkgx in my dotfiles.

However, my dotfiles:

  • Automatically installs missing tools
  • Automatically uninstalls some tools I no longer want

And in order to perform that with pkgx, I need to fetch a list of pkgs already installed. Something like:

$ pkgx list-installed
openjdk.org@11
nodejs.org
yarnpkg.com

# a tool I want to have installed
$ if ! pkgx list-installed | grep -w openjdk.org@11; then pkgx install openjdk.org@11; fi

# a tool I do not want to have
$ if pkgx list-installed | grep -w asciinema.org; then pkgx uninstall asciinema.org; fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions