php-snmp on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: December 03,2022

1. Install php-snmp package

Please follow the instructions below to install php-snmp package:

sudo apt update
sudo apt install php-snmp

2. Uninstall / Remove php-snmp package

This tutorial shows how to uninstall php-snmp package:

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

3. Details of php-snmp package

Package: php-snmp
Source: php-defaults (
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php-common, php8.1-snmp
Filename: pool/main/p/php-defaults/
Size: 7292
MD5sum: a0c9894c08f0e7e6bd186c2f4403e534
SHA1: 7f62621c1dcd533eca315f12de87ea771565a34e
SHA256: b425c9368b9a2c895fc0ac880385a8bb255e749a1d2bf879958bdef79c1c796d
Description: SNMP module for PHP [default]
Description-md5: b3cf783615687a986845c4b95f5e59f5

Package: php-snmp
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Installed-Size: 13
Depends: php-common, php7.4-snmp
Filename: pool/main/p/php-defaults/php-snmp_7.4+75_all.deb
Size: 2004
MD5sum: 8b5878a2162b1195c97de038006be715
SHA1: 4aad596633fee83b520b3adc5533f1a385194377
SHA256: b8d39b638fd8e01568153c6565d46ef523018b3beaabbb7d220f7b231596fd5d
Description: SNMP module for PHP [default]
Description-md5: 769fc8068b6b2eefaccfd299cf22524e