How To Install uwsgi on Fedora 34
Introduction
In this tutorial we learn how to install uwsgi
on Fedora 34.
What is uwsgi
uWSGI is a fast (pure C), self-healing, developer/sysadmin-friendly application container server. Born as a WSGI-only server, over time it has evolved in a complete stack for networked/clustered web applications, implementing message/object passing, caching, RPC and process management. It uses the uwsgi (all lowercase, already included by default in the Nginx and Cherokee releases) protocol for all the networking/interprocess communications. Can be run in preforking mode, threaded, asynchronous/evented and supports various form of green threads/co-routine (like uGreen and Fiber). Sysadmin will love it as it can be configured via command line, environment variables, xml, .ini and yaml files and via LDAP. Being fully modular can use tons of different technology on top of the same core.
We can use yum
or dnf
to install uwsgi
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install uwsgi.
Install uwsgi on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install uwsgi
using dnf
by running the following command:
sudo dnf -y install uwsgi
Install uwsgi on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install uwsgi
using yum
by running the following command:
sudo yum -y install uwsgi
How To Uninstall uwsgi on Fedora 34
To uninstall only the uwsgi
package we can use the following command:
sudo dnf remove uwsgi
uwsgi Package Contents on Fedora 34
/etc/uwsgi.d
/etc/uwsgi.ini
/usr/lib/.build-id
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/fbeed22b3ade21b20440a76cf7a1274fb12151
/usr/lib/systemd/system/uwsgi.service
/usr/lib/tmpfiles.d/uwsgi.conf
/usr/sbin/uwsgi
/usr/share/doc/uwsgi
/usr/share/doc/uwsgi/CHANGELOG
/usr/share/doc/uwsgi/README
/usr/share/doc/uwsgi/README.Fedora
/usr/share/licenses/uwsgi
/usr/share/licenses/uwsgi/LICENSE
References
Summary
In this tutorial we learn how to install uwsgi
on Fedora 34 using yum and dnf.