How To Install libmartchus-c++utilities5 on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libmartchus-c++utilities5
on Ubuntu 22.04.
What is libmartchus-c++utilities5
libmartchus-c++utilities5 is:
Martchus-cpp-utilities is a library that contains helpers for:
- parsing command-line arguments and providing Bash completions
- working with dates and times
- converting primitive data types to byte-buffers, and vice versa (eg, between litte-endian and big-endian)
- common string conversions/operations
- using standard IO streams
- using SFINAE by providing additional traits (eg, for checking whether a type is iteratable)
- testing with CppUnit
- CMake, with convenient modules and templates
It also provides the following convenience functions and data structures:
- min() and max(), for any number of arguments
- digitsum(), factorial(), powerModulo(), inverseModulo(), and orderModulo()
- Damerau–Levenshtein distance
- N-dimensional arrays
There are three methods to install libmartchus-c++utilities5
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 libmartchus-c++utilities5 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libmartchus-c++utilities5
using apt-get
by running the following command:
sudo apt-get -y install libmartchus-c++utilities5
Install libmartchus-c++utilities5 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmartchus-c++utilities5
using apt
by running the following command:
sudo apt -y install libmartchus-c++utilities5
Install libmartchus-c++utilities5 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 libmartchus-c++utilities5
using aptitude
by running the following command:
sudo aptitude -y install libmartchus-c++utilities5
How To Uninstall libmartchus-c++utilities5 on Ubuntu 22.04
To uninstall only the libmartchus-c++utilities5
package we can use the following command:
sudo apt-get remove libmartchus-c++utilities5
Uninstall libmartchus-c++utilities5 And Its Dependencies
To uninstall libmartchus-c++utilities5
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libmartchus-c++utilities5
Remove libmartchus-c++utilities5 Configurations and Data
To remove libmartchus-c++utilities5
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libmartchus-c++utilities5
Remove libmartchus-c++utilities5 configuration, data, and all of its dependencies
We can use the following command to remove libmartchus-c++utilities5
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmartchus-c++utilities5
References
Summary
In this tutorial we learn how to install libmartchus-c++utilities5
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.