Installing on macOS via Homebrew Installing via Homebrew An alternative installation method can be used to install DITA-OT on macOS via , the platform’s most popular open-source package manager. macOS dita commandHomebrew installingHomebrew

The steps below assume you have already installed according to the instructions at brew.sh.

Verify that your PATH environment begins with /usr/local/bin to ensure that Homebrew-installed software takes precedence over any programs of the same name elsewhere on the system.
Update Homebrew to make sure the latest package formulas are available on your system: $ brew update Already up-to-date.

Homebrew responds with a list of any new or updated formulæ.

Check the version of DITA-OT that is available from Homebrew: $ brew info dita-ot dita-ot: stable DITA Open Toolkit is an implementation of the OASIS DITA specification https://www.dita-ot.org/ /usr/local/Cellar/dita-ot/ (number of files, package size) * Built from source on YYYY-MM-DD at hh:mm:ss From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/dita-ot.rb ==> Requirements Required: java >= 1.8 ✔

The version of the DITA-OT formula is shown, along with basic information on the package.

Install the dita-ot package: $ brew install dita-ot Downloading…

Homebrew will automatically download the latest version of the toolkit, install it in a subfolder of the local package Cellar and symlink the dita command to /usr/local/bin/dita.

Verify the installation: $ which dita /usr/local/bin/dita

The response confirms that the system will use the Homebrew-installed version of DITA-OT.

Check the DITA-OT version number: $ dita --version DITA-OT version The DITA-OT version number appears on the console.

You can now run the dita command to transform DITA content.