How To Install libjs-autoprefixer on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libjs-autoprefixer
on Ubuntu 20.04.
What is libjs-autoprefixer
libjs-autoprefixer is:
PostCSS plugin to parse CSS and add vendor prefixes to CSS rules using values from the Can One Use website. It is recommended by Google and used in Twitter and Taobao.
Write your CSS rules without vendor prefixes (in fact, forget about them entirely).
This package provides autoprefixer.js as a standalone library targeting browsers.
There are three methods to install libjs-autoprefixer
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 libjs-autoprefixer Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libjs-autoprefixer
using apt-get
by running the following command:
sudo apt-get -y install libjs-autoprefixer
Install libjs-autoprefixer Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libjs-autoprefixer
using apt
by running the following command:
sudo apt -y install libjs-autoprefixer
Install libjs-autoprefixer 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 libjs-autoprefixer
using aptitude
by running the following command:
sudo aptitude -y install libjs-autoprefixer
How To Uninstall libjs-autoprefixer on Ubuntu 20.04
To uninstall only the libjs-autoprefixer
package we can use the following command:
sudo apt-get remove libjs-autoprefixer
Uninstall libjs-autoprefixer And Its Dependencies
To uninstall libjs-autoprefixer
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libjs-autoprefixer
Remove libjs-autoprefixer Configurations and Data
To remove libjs-autoprefixer
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libjs-autoprefixer
Remove libjs-autoprefixer configuration, data, and all of its dependencies
We can use the following command to remove libjs-autoprefixer
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjs-autoprefixer
References
Summary
In this tutorial we learn how to install libjs-autoprefixer
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.