Search anything:

Install astyle in Ubuntu

Learn Algorithms and become a National Programmer
Indian Technical Authorship Contest starts on 1st July 2023. Stay tuned.

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.

Ned Nedialkov

Ned Nedialkov

Professor of Computing at McMaster University | Ph.D in Computer Science from University of Toronto in 1999 | Native of Bulgaria | Research in Scientific Computing

Read More

Vote for Author of this article:

Improved & Reviewed by:

OpenGenus Tech Review Team OpenGenus Tech Review Team