Cyberithub

How to Install Jsonnet on macOS(Monterey 12) Using brew

Advertisements

In this article, I will take you through the steps to install jsonnet on macOS(Monterey 12) using brew package manager. Jsonnet is a free and open source command line tool to execute Jsonnet programs and generate JSON on output. You can use Jsonnet program to generate a valid JSON document. More on official website.

The Jsonnet command line tool has a special mode for generating multiple JSON files from a single Jsonnet file. This can be useful if you want to avoid writing lots of small Jsonnet files, or if you want to take advantage of cross-references and interdependencies between the files. Jsonnet utility can be easily installed on Linux and macOS based systems. Here we will see the steps to install Jsonnet on macOS(Monterey 12) using brew package manager.

How to Install Jsonnet on macOS(Monterey 12) Using brew

How to Install Jsonnet on macOS(Monterey 12) Using brew

Also Read: Solved "xcrun: error: invalid active developer path (/Library/Developer/ CommandLineTools)"

You can install Jsonnet on macOS System by using brew install jsonnet command as shown below. You just need an active Internet connection and access to install the package in your macOS system.

cyberithub@n1ams2p9089 ~ % brew install jsonnet
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
antidote    commitlint     liblbfgs    objconv    schemathesis   kubesess
==> New Casks
apipost    bridge    doll    laconvolver    spline    xprocheck    beast2

You have 3 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated

==> Downloading https://ghcr.io/v2/homebrew/core/jsonnet/manifests/0.18.0
##################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jsonnet/blobs/sha256:6ed8bac8deaac78aeaa897a89ae454a8342aed45c464
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:6ed8bac8deaac78aeaa897a89ae454a8342aed45c464?se=2022-09-12T16%3A20%3A00Z&sig=MR01J48EK52
##################################################################### 100.0%
==> Pouring jsonnet--0.18.0.monterey.bottle.tar.gz
    /usr/local/Cellar/jsonnet/0.18.0: 6 files, 1.9MB
==> Running `brew cleanup jsonnet`...
Disable this behavior by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

After successful installation, you can check the installed version by using jsonnet --version command as shown below. You can also check all the help options available using --help switch.

cyberithub@n1ams2p9089 ~ % jsonnet --version
Jsonnet commandline interpreter v0.18.0

Once you are done with Jsonnet, you can also choose to uninstall it from your System by using brew uninstall jsonnet command as shown below.

cyberithub@n1ams2p9089 ~ % brew uninstall jsonnet
Uninstalling /usr/local/Cellar/jsonnet/0.18.0... (6 files, 1.9 MB)

Leave a Comment