How To Install valac on Ubuntu 20.04
Introduction
In this tutorial we learn how to install valac
on Ubuntu 20.04.
What is valac
valac is:
Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.
valac, the Vala compiler, is a self-hosting compiler that translates Vala source code into C source and header files. It uses the GObject type system to create classes and interfaces declared in the Vala source code. This package also contains the vala-gen-introspect and vapigen binaries that will automatically generate Vala bindings.
Package: valac Architecture: amd64 Version: 0.48.3-1 Priority: optional Section: universe/devel Source: vala Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian GNOME Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 449 Depends: libc6 (>= 2.14), libglib2.0-0 (>= 2.48), libvala-0.48-0 (= 0.48.3-1), libvalacodegen-0.48-0 (= 0.48.3-1), libglib2.0-dev (>= 2.48), valac-0.48-vapi, valac-bin (= 0.48.3-1) Recommends: gcc Conflicts: valac-0.12, valac-0.14, valac-0.16, valac-0.18, valac-0.20, valac-0.22, valac-0.24, valac-0.26, valac-0.28, valac-0.30 Filename: pool/universe/v/vala/valac_0.48.3-1_amd64.deb Size: 111448 MD5sum: faad61dc1f3d67e3bfdb3255c7747a7d SHA1: 9806ffbf560068a8eef9b99f5b1e4612bdca6497 SHA256: 7fcdcc64bfb61cd4cc9704bb771ccf0bc32a42a987b6bccdda49813625171824 Homepage: https://wiki.gnome.org/Projects/Vala/ Description-en: C# like language for the GObject system Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.
valac, the Vala compiler, is a self-hosting compiler that translates Vala source code into C source and header files. It uses the GObject type system to create classes and interfaces declared in the Vala source code. This package also contains the vala-gen-introspect and vapigen binaries that will automatically generate Vala bindings.
There are three methods to install valac
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install valac Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install valac
using apt-get
by running the following command:
sudo apt-get -y install valac
Install valac Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install valac
using apt
by running the following command:
sudo apt -y install valac
Install valac Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install valac
using aptitude
by running the following command:
sudo aptitude -y install valac
How To Uninstall valac on Ubuntu 20.04
To uninstall only the valac
package we can use the following command:
sudo apt-get remove valac
Uninstall valac And Its Dependencies
To uninstall valac
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove valac
Remove valac Configurations and Data
To remove valac
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge valac
Remove valac configuration, data, and all of its dependencies
We can use the following command to remove valac
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge valac
References
Summary
In this tutorial we learn how to install valac
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.