Homebrew

Install

You can use Homebrew, the macOS package manager, to install Asciidoctor. If you don’t have Homebrew on your computer, complete the installation instructions first.

Once Homebrew is installed, you’re ready to install the asciidoctor gem. Open a terminal and type:

$ brew install asciidoctor

Homebrew installs the asciidoctor gem into an exclusive prefix that’s independent of system gems.

Unresolved directive in install__macos.adoc - include::partial$success.adoc[]

Upgrade

To upgrade the gem, open a terminal and type:

$ brew update
$ brew upgrade asciidoctor

Uninstall

To uninstall the gem, open a terminal and type:

$ brew uninstall asciidoctor

MacPorts

You can also use MacPorts, another package manager for macOS, to install Asciidoctor. If you don’t have MacPorts on your computer, complete the installation instructions first.

Once MacPorts is installed, you’re ready to install the asciidoctor gem via the Asciidoctor port. Open a terminal and type:

$ sudo port install asciidoctor

Unresolved directive in install__macos.adoc - include::partial$success.adoc[]

Upgrade

To upgrade the gem, open a terminal and type:

$ sudo port selfupdate
$ sudo port upgrade asciidoctor

Uninstall

To uninstall the gem, open a terminal and type:

$ sudo port uninstall asciidoctor