
Introduction
In this tutorial we learn how to install autorevision
on Ubuntu 22.04.
What is autorevision
autorevision is:
Extracts metadata about the current revision from your repository.
This program is meant to be used by project build systems to extract
properties that can be used in software version strings. Repository
types supported include git, hg, bzr, and svn. It can create files
containing variable and macro definitions suitable for a variety of
programming languages and other info formats. Emitted information
includes the ID of the most recent commit, its branch, its date,
and several other useful pieces of meta-information. There is
support for reading and writing a cache file so autorevision will
remain useful during a build from an unpacked distribution tarball.
There are three methods to install autorevision
on Ubuntu 22.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 autorevision Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install autorevision
using apt-get
by running the following command:
sudo apt-get -y install autorevision
Install autorevision Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install autorevision
using apt
by running the following command:
sudo apt -y install autorevision
Install autorevision 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 autorevision
using aptitude
by running the following command:
sudo aptitude -y install autorevision
How To Uninstall autorevision on Ubuntu 22.04
To uninstall only the autorevision
package we can use the following command:
sudo apt-get remove autorevision
Uninstall autorevision And Its Dependencies
To uninstall autorevision
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove autorevision
Remove autorevision Configurations and Data
To remove autorevision
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge autorevision
Remove autorevision configuration, data, and all of its dependencies
We can use the following command to remove autorevision
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge autorevision
References
Summary
In this tutorial we learn how to install autorevision
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.
