How To Install uwsgi-core on Debian 12

Learn how to install uwsgi-core on Debian 12 with this tutorial. uwsgi-core is fast, self-healing application container server (core)

Introduction

In this tutorial we learn how to install uwsgi-core on Debian 12.

What is uwsgi-core

uwsgi-core is:

uWSGI presents a complete stack for networked/clustered web applications, implementing message/object passing, caching, RPC and process management. It uses the uwsgi protocol for all the networking/interprocess communications.

uWSGI can be run in preforking, threaded, asynchronous/evented modes and supports various forms of green threads/coroutines (such as uGreen, Greenlet, Fiber). uWSGI provides several methods of configuration: via command line, via environment variables, via XML, INI, YAML configuration files, via LDAP and more.

On top of all this, it is designed to be fully modular. This means that different plugins can be used in order to add compatibility with tons of different technology on top of the same core.

This package provides core uWSGI binary (built without any embedded plugins) and plugins with no or few dependencies:

  • cache
  • carbon
  • cgi
  • cheaper_backlog2
  • cheaper_busyness
  • clock_monotonic
  • clock_realtime
  • corerouter
  • echo
  • emperor_amqp
  • emperor_zeromq
  • fastrouter
  • forkptyrouter
  • http
  • logcrypto
  • logfile
  • logpipe
  • logsocket
  • logzmq
  • mongrel2
  • msgpack
  • nagios
  • notfound
  • pam
  • ping
  • pty
  • rawrouter
  • redislog
  • router_basicauth
  • router_cache
  • router_expires
  • router_hash
  • router_http
  • router_memcached
  • router_metrics
  • router_radius
  • router_redirect
  • router_redis
  • router_rewrite
  • router_static
  • router_uwsgi
  • router_xmldir
  • rpc
  • rrdtool
  • rsyslog
  • signal
  • spooler
  • ssi
  • sslrouter
  • stats_pusher_file
  • stats_pusher_socket
  • stats_pusher_statsd
  • symcall
  • syslog
  • systemd_logger
  • transformation_chunked
  • transformation_gzip
  • transformation_offload
  • transformation_template
  • transformation_tofile
  • transformation_toupper
  • tuntap
  • ugreen
  • webdav
  • xattr
  • zabbix
  • zergpool

forkptyrouter, systemd and tuntap are provided only on supported architectures.

Developing external uWSGI plugin requires the package uwsgi-dev.

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

Install uwsgi-core Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install uwsgi-core

Install uwsgi-core Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install uwsgi-core

Install uwsgi-core 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 uwsgi-core using aptitude by running the following command:

sudo aptitude -y install uwsgi-core

How To Uninstall uwsgi-core on Debian 12

To uninstall only the uwsgi-core package we can use the following command:

sudo apt-get remove uwsgi-core

Uninstall uwsgi-core And Its Dependencies

To uninstall uwsgi-core and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove uwsgi-core

Remove uwsgi-core Configurations and Data

To remove uwsgi-core configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge uwsgi-core

Remove uwsgi-core configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge uwsgi-core

Dependencies

uwsgi-core have the following dependencies:

References

Summary

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