How To Install libsnmp-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libsnmp-perl
on Ubuntu 20.04.
What is libsnmp-perl
libsnmp-perl is:
The Simple Network Management Protocol (SNMP) provides a framework for the exchange of management information between agents (servers) and clients.
The Net-SNMP Perl5 support files provide the Perl functions for integration of SNMP into applications written in Perl.
Package: libsnmp-perl Architecture: amd64 Version: 5.8+dfsg-2ubuntu2 Priority: optional Section: universe/perl Source: net-snmp Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Net-SNMP Packaging Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 590 Depends: perl (>= 5.30.0-9build1), perlapi-5.30.0, libc6 (>= 2.15), libsnmp35 (>= 5.8+dfsg) Filename: pool/universe/n/net-snmp/libsnmp-perl_5.8+dfsg-2ubuntu2_amd64.deb Size: 158936 MD5sum: e977cd5f92cb79b185c2002806f84c4b SHA1: 7ecaff609ab4b6c814e3df4737a00fbf9587182d SHA256: fbb3ce94682605af7c9ada495689e46cac26eb020367214dd9dd76d2c7f5909e Homepage: http://net-snmp.sourceforge.net/ Description-en: SNMP (Simple Network Management Protocol) Perl5 support The Simple Network Management Protocol (SNMP) provides a framework for the exchange of management information between agents (servers) and clients.
The Net-SNMP Perl5 support files provide the Perl functions for integration of SNMP into applications written in Perl.
There are three methods to install libsnmp-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 libsnmp-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 libsnmp-perl
using apt-get
by running the following command:
sudo apt-get -y install libsnmp-perl
Install libsnmp-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsnmp-perl
using apt
by running the following command:
sudo apt -y install libsnmp-perl
Install libsnmp-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 libsnmp-perl
using aptitude
by running the following command:
sudo aptitude -y install libsnmp-perl
How To Uninstall libsnmp-perl on Ubuntu 20.04
To uninstall only the libsnmp-perl
package we can use the following command:
sudo apt-get remove libsnmp-perl
Uninstall libsnmp-perl And Its Dependencies
To uninstall libsnmp-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libsnmp-perl
Remove libsnmp-perl Configurations and Data
To remove libsnmp-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libsnmp-perl
Remove libsnmp-perl configuration, data, and all of its dependencies
We can use the following command to remove libsnmp-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsnmp-perl
References
Summary
In this tutorial we learn how to install libsnmp-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.