libnet-subnets-perl software package provides module for IPv4 subnet calculations, you can install in your Ubuntu 14.04 LTS (Trusty Tahr) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install libnet-subnets-perl
libnet-subnets-perl is installed in your system.
Make ensure the libnet-subnets-perl package were installed using the commands given below,
$ sudo dpkg-query -l | grep libnet-subnets-perl *
You will get with libnet-subnets-perl package name, version, architecture and description in a table
| Distro | Ubuntu 14 04 lts trusty tahr |
| Section | Perl |
| Package | libnet-subnets-perl |
| Version | 1.0-1 |
| Description | module for IPv4 subnet calculations |
| Sub Section | Perl |