How To Install miller on Ubuntu 18.04
Introduction
In this tutorial we learn how to install miller
on Ubuntu 18.04.
What is miller
miller is:
Miller (mlr) allows name-indexed data such as CSV files to be processed with functions equivalent to sed, awk, cut, join, sort etc. It can convert between formats, preserves headers when sorting or reversing, and streams data where possible so its memory requirements stay small. It works well with pipes and can feed “tail -f”.
There are three methods to install miller
on Ubuntu 18.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 miller Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install miller
using apt-get
by running the following command:
sudo apt-get -y install miller
Install miller Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install miller
using apt
by running the following command:
sudo apt -y install miller
Install miller 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 miller
using aptitude
by running the following command:
sudo aptitude -y install miller
How To Uninstall miller on Ubuntu 18.04
To uninstall only the miller
package we can use the following command:
sudo apt-get remove miller
Uninstall miller And Its Dependencies
To uninstall miller
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove miller
Remove miller Configurations and Data
To remove miller
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge miller
Remove miller configuration, data, and all of its dependencies
We can use the following command to remove miller
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge miller
References
Summary
In this tutorial we learn how to install miller
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.