How To Install libusb-libusb-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libusb-libusb-perl
on Ubuntu 20.04.
What is libusb-libusb-perl
libusb-libusb-perl is:
USB::LibUSB provides a Perl interface to the libusb-1.0 API. It provides access to most basic libusb functionality including read-out of device descriptors and synchronous device I/O.
Staying as close as possible to the libusb-1.0 API, this module adds convenient error handling and additional high-level functionality (e.g. device discovery with vid, pid and serial number). Easy to build more functionality without knowing about XS.
There are three methods to install libusb-libusb-perl
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 libusb-libusb-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libusb-libusb-perl
using apt-get
by running the following command:
sudo apt-get -y install libusb-libusb-perl
Install libusb-libusb-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libusb-libusb-perl
using apt
by running the following command:
sudo apt -y install libusb-libusb-perl
Install libusb-libusb-perl 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 libusb-libusb-perl
using aptitude
by running the following command:
sudo aptitude -y install libusb-libusb-perl
How To Uninstall libusb-libusb-perl on Ubuntu 20.04
To uninstall only the libusb-libusb-perl
package we can use the following command:
sudo apt-get remove libusb-libusb-perl
Uninstall libusb-libusb-perl And Its Dependencies
To uninstall libusb-libusb-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libusb-libusb-perl
Remove libusb-libusb-perl Configurations and Data
To remove libusb-libusb-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libusb-libusb-perl
Remove libusb-libusb-perl configuration, data, and all of its dependencies
We can use the following command to remove libusb-libusb-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libusb-libusb-perl
References
Summary
In this tutorial we learn how to install libusb-libusb-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.