Install astyle in Ubuntu

Do not miss this exclusive book on Binary Tree Problems. Get it now for free.

In this article, we have presented how to install astyle (Artistic Style) tool in UNIX/ Ubuntu.

Table of contents:

  1. Install astyle using apt-get
  2. Build and Install astyle from source

Install astyle using apt-get

In UNIX system like Ubuntu, install astyle using apt-get tool as follows:

sudo apt-get update -y
sudo apt-get install -y astyle

Build and Install astyle from source

If apt-get tool does not work on your system, you will need to build astyle from source. As astyle is an open-source project, download the source code using the following command:

git clone https://github.com/steinwurf/astyle.git
cd astyle
  • Build and install astyle as follows:
cd astyle
python waf configure --cxx_mkspec=cxx_default
python waf build

With this article at OpenGenus, you must have the complete idea of how to install astyle (Artistic Style) tool in UNIX/ Ubuntu.

Sign up for FREE 3 months of Amazon Music. YOU MUST NOT MISS.