How To Install libnet-server-perl on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 454 words
Introduction
In this tutorial we learn how to install libnet-server-perl
on Ubuntu.
What is libnet-server-perl
libnet-server-perl is:
Net::Server is an extensible, general perl server engine that combines the good properties from Net::Daemon, NetServer::Generic, and Net::FTPServer; and borrows various concepts from the Apache webserver.
Features include:
- Single Server Mode
- Inetd Server Mode
- Preforking Simple Mode (PreForkSimple)
- Preforking Managed Mode (PreFork)
- Forking Mode
- Multiplexing Mode using a single process
- Multi port accepts on Single, Preforking, and Forking modes
- Simultaneous accept/recv on tcp, udp, and unix sockets
- Safe signal handling in Fork/PreFork avoids perl signal trouble
- User customizable hooks
- Chroot ability after bind
- Change of user and group after bind
- Basic allow/deny access control
- Customized logging (choose Syslog, log_file, or STDERR)
- HUP able server (clean restarts via sig HUP)
- Dequeue ability in all Fork and PreFork modes.
- Taint clean
- Written in Perl
- Protection against buffer overflow
- Clean process flow
- Extensibility
There are three methods to install libnet-server-perl
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libnet-server-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 libnet-server-perl
using apt-get
by running the following command:
sudo apt-get -y install libnet-server-perl
Install libnet-server-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libnet-server-perl
using apt
by running the following command:
sudo apt -y install libnet-server-perl
Install libnet-server-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 libnet-server-perl
using aptitude
by running the following command:
sudo aptitude -y install libnet-server-perl
How To Uninstall libnet-server-perl on Ubuntu
To uninstall only the libnet-server-perl
package we can use the following command:
sudo apt-get remove libnet-server-perl
Uninstall libnet-server-perl And Its Dependencies
To uninstall libnet-server-perl
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libnet-server-perl
Remove libnet-server-perl Configurations and Data
To remove libnet-server-perl
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libnet-server-perl
Remove libnet-server-perl configuration, data, and all of its dependencies
We can use the following command to remove libnet-server-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnet-server-perl
Dependencies
libnet-server-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libnet-server-perl
package on Ubuntu using different package management tools: apt, apt-get and aptitude.