Closed
Description
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
Labels
No labels