In this tutorial, you will learn how to install Meson on Arch Linux.
Meson is an open source tool that allows you to build software.
Meson supports multiple platforms, such as : Linux, MacOs, Windows, Visual studio, GCC and a lot more.
Meson is available on Aur repository, which means you can install Meson on Arch linux easily from your terminal using pacman, or any other package manager.
Meson can also be installed by using pip as Meson is available on PyPi repository.
In this tutorial, we'll be installing Meson via both ways, via AUR repository, and via the python package on PyPi repository.
Install Meson on Arch Linux
Install Meson via AUR repository
To install Meson via AUR repository, you can do so by using the default package manager on Arch Linux.
So to install Meson, simply run the command below.
sudo pacman -S meson
We are using
pacman to download
Meson. However, you can use any other package manager, or AUR helper such as Paru.
Install Meson via pip
Meson is also available as a python package to be downloaded from PyPi repository, which means you can install Meson using pip3.
To install Meson with pip3, run the following
sudo pip3 install meson
At the time of writing this tutorial, the latest version of meson is
meson 1.2.3 version
Verify Meson Installation
Once you have installed Meson on your Arch Linux machine, before using it to build a project with it, you need to verify that Meson was installed correctly and it can run without any issues.
To check if Meson was installed correctly, check its version
Uninstall Meson on Arch Linux
You can uninstall Meson easily from your Arch Linux system, depending the method you used to install it.
For example, if you used pacman to install meson, then you can uninstall meson with
sudo pacman -R meson
If you used pip to install Meson, then to uninstall Meson in this case you need to use pip again
sudo pip3 uninstall meson
In this tutorial, you learned how to install Meson on Arch Linux via two different methods.