How To Install libjs-toastr on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libjs-toastr
on Ubuntu 22.04.
What is libjs-toastr
libjs-toastr is:
toastr is a JavaScript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.
jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages.
There are three methods to install libjs-toastr
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 libjs-toastr 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-toastr
using apt-get
by running the following command:
sudo apt-get -y install libjs-toastr
Install libjs-toastr Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libjs-toastr
using apt
by running the following command:
sudo apt -y install libjs-toastr
Install libjs-toastr 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-toastr
using aptitude
by running the following command:
sudo aptitude -y install libjs-toastr
How To Uninstall libjs-toastr on Ubuntu 22.04
To uninstall only the libjs-toastr
package we can use the following command:
sudo apt-get remove libjs-toastr
Uninstall libjs-toastr And Its Dependencies
To uninstall libjs-toastr
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libjs-toastr
Remove libjs-toastr Configurations and Data
To remove libjs-toastr
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libjs-toastr
Remove libjs-toastr configuration, data, and all of its dependencies
We can use the following command to remove libjs-toastr
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libjs-toastr
References
Summary
In this tutorial we learn how to install libjs-toastr
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.