How To Install valadoc on Ubuntu 20.04
Introduction
In this tutorial we learn how to install valadoc on Ubuntu 20.04.
What is valadoc
valadoc is:
Valadoc is a documentation generator for generating API documentation in HTML format from Vala source code. It can be used for *.vala and *.vapi files.
Package: valadoc Architecture: amd64 Version: 0.48.3-1 Multi-Arch: foreign Priority: extra 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: 457 Depends: libc6 (>= 2.4), libglib2.0-0 (>= 2.48), libvala-0.48-0 (>= 0.47.3), libvaladoc-0.48-0 (= 0.48.3-1), libvalacodegen-0.48-0 (= 0.48.3-1), valac (= 0.48.3-1) Recommends: gtk-doc-tools Filename: pool/universe/v/vala/valadoc_0.48.3-1_amd64.deb Size: 95632 MD5sum: 347addf07851723a94f555c48b909ef3 SHA1: 847d8018c0664cd1baddfc3869152a2c68b283b7 SHA256: 525e563b5e9a8637ef398cc4ee51764e028a1d21354f61fc925ed38c2e89ee81 Homepage: https://wiki.gnome.org/Projects/Vala/ Description-en: API documentation generator for vala Valadoc is a documentation generator for generating API documentation in HTML format from Vala source code. It can be used for *.vala and *.vapi files.
There are three methods to install valadoc 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 valadoc Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install valadoc using apt-get by running the following command:
sudo apt-get -y install valadoc
Install valadoc Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install valadoc using apt by running the following command:
sudo apt -y install valadoc
Install valadoc 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 valadoc using aptitude by running the following command:
sudo aptitude -y install valadoc
How To Uninstall valadoc on Ubuntu 20.04
To uninstall only the valadoc package we can use the following command:
sudo apt-get remove valadoc
Uninstall valadoc And Its Dependencies
To uninstall valadoc and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove valadoc
Remove valadoc Configurations and Data
To remove valadoc configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge valadoc
Remove valadoc configuration, data, and all of its dependencies
We can use the following command to remove valadoc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge valadoc
References
Summary
In this tutorial we learn how to install valadoc package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.