How To Install golang-github-tdewolff-minify-dev on Ubuntu 18.04
Introduction
In this tutorial we learn how to install golang-github-tdewolff-minify-dev on Ubuntu 18.04.
What is golang-github-tdewolff-minify-dev
golang-github-tdewolff-minify-dev is:
github.com/tdewolff/minify is a minifier package written in Go. It provides HTML5, CSS3, JS, JSON, SVG and XML minifiers and an interface to implement any other minifier.
Minification is the process of removing bytes from a file (such as whitespace) without changing its output and therefore shrinking its size and speeding up transmission over the Internet and possibly parsing. The implemented minifiers are high performance and streaming, which implies O(n).
The core functionality associates mimetypes with minification functions, allowing embedded resources (like CSS or JS within HTML files) to be minified as well. Users can add new implementations that are triggered based on a mimetype (or pattern), or redirect to an external command (like ClosureCompiler, UglifyCSS, …)
There are three methods to install golang-github-tdewolff-minify-dev 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 golang-github-tdewolff-minify-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install golang-github-tdewolff-minify-dev using apt-get by running the following command:
sudo apt-get -y install golang-github-tdewolff-minify-dev
Install golang-github-tdewolff-minify-dev Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install golang-github-tdewolff-minify-dev using apt by running the following command:
sudo apt -y install golang-github-tdewolff-minify-dev
Install golang-github-tdewolff-minify-dev 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 golang-github-tdewolff-minify-dev using aptitude by running the following command:
sudo aptitude -y install golang-github-tdewolff-minify-dev
How To Uninstall golang-github-tdewolff-minify-dev on Ubuntu 18.04
To uninstall only the golang-github-tdewolff-minify-dev package we can use the following command:
sudo apt-get remove golang-github-tdewolff-minify-dev
Uninstall golang-github-tdewolff-minify-dev And Its Dependencies
To uninstall golang-github-tdewolff-minify-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove golang-github-tdewolff-minify-dev
Remove golang-github-tdewolff-minify-dev Configurations and Data
To remove golang-github-tdewolff-minify-dev configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge golang-github-tdewolff-minify-dev
Remove golang-github-tdewolff-minify-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-github-tdewolff-minify-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-github-tdewolff-minify-dev
References
Summary
In this tutorial we learn how to install golang-github-tdewolff-minify-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.