How to Install and Uninstall php-snmp Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: April 18,2024

1. Install "php-snmp" package

Please follow the instructions below to install php-snmp on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-snmp

2. Uninstall "php-snmp" package

Here is a brief guide to show you how to uninstall php-snmp on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove php-snmp $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-snmp package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-snmp
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php-common, php8.1-snmp
Filename: pool/main/p/php-defaults/php-snmp_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7288
MD5sum: 50346f939b0e90aa0537110468b9bb3f
SHA1: 239e0c77ac63e03420396e7de81f208160b76b46
SHA256: 8569d85b360323816a43491fb7918085fedfa689eddd50a9da5cc2fb6b6a4075
Description: SNMP module for PHP [default]
Description-md5: b3cf783615687a986845c4b95f5e59f5

Package: php-snmp
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php-common, php7.2-snmp
Filename: pool/main/p/php-defaults/php-snmp_7.2+60ubuntu1_all.deb
Size: 2000
MD5sum: 9ec876e4cc754a953e7dfba82f24b896
SHA1: 2d7b6a28cb6cbc470b9b14f8c39d997fe0d1424d
SHA256: 60b51bb07daac1e99fe3a70a5c3bb5bbbefac16ce5fa154092a607eea24724ec
Description: SNMP module for PHP [default]
Description-md5: d51f8b8afec060fc637875182ace603a
Supported: 5y