How To Install starman on Debian 11

In this tutorial we learn how to install starman on Debian 11. starman is high-performance preforking PSGI/Plack web server

Introduction

In this tutorial we learn how to install starman on Debian 11.

What is starman

starman is:

Starman is a PSGI perl web server that has unique features such as:

  • High Performance - Uses the fast XS/C HTTP header parser
  • Preforking - Spawns workers preforked like most high performance UNIX servers do. Starman also reaps dead children and automatically restarts the worker pool.
  • Signals - Supports HUP for graceful restarts, and TTIN/TTOU to dynamically increase or decrease the number of worker processes.
  • Superdaemon aware - Supports Server::Starter for hot deploy and graceful restarts.
  • Multiple interfaces and UNIX Domain Socket support - Able to listen on multiple intefaces including UNIX sockets.
  • Small memory footprint - Preloading the applications with –preload-app command line option enables copy-on-write friendly memory management. Also, the minimum memory usage Starman requires for the master process is 7MB and children (workers) is less than 3.0MB.
  • PSGI compatible - Can run any PSGI applications and frameworks
  • HTTP/1.1 support - Supports chunked requests and responses, keep-alive and pipeline requests.

There are three methods to install starman on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install starman Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install starman using apt-get by running the following command:

sudo apt-get -y install starman

Install starman Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install starman using apt by running the following command:

sudo apt -y install starman

Install starman 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install starman using aptitude by running the following command:

sudo aptitude -y install starman

How To Uninstall starman on Debian 11

To uninstall only the starman package we can use the following command:

sudo apt-get remove starman

Uninstall starman And Its Dependencies

To uninstall starman and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove starman

Remove starman Configurations and Data

To remove starman configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge starman

Remove starman configuration, data, and all of its dependencies

We can use the following command to remove starman configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge starman

Dependencies

starman have the following dependencies:

References

Summary

In this tutorial we learn how to install starman package on Debian 11 using different package management tools: apt, apt-get and aptitude.