How To Install netty on Fedora 34

netty is An asynchronous event-driven network application framework and tools for Java

Introduction

In this tutorial we learn how to install netty on Fedora 34.

What is netty

Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server. ‘Quick and easy’ doesn’t mean that a resulting application will suffer from a maintainability or a performance issue. Netty has been designed carefully with the experiences earned from the implementation of a lot of protocols such as FTP, SMTP, HTTP, and various binary and text-based legacy protocols. As a result, Netty has succeeded to find a way to achieve ease of development, performance, stability, and flexibility without a compromise.

We can use yum or dnf to install netty on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install netty.

Install netty 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 netty using dnf by running the following command:

sudo dnf -y install netty

Install netty 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 netty using yum by running the following command:

sudo yum -y install netty

How To Uninstall netty on Fedora 34

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

sudo dnf remove netty

netty Package Contents on Fedora 34

/usr/share/java/netty
/usr/share/java/netty/netty-buffer.jar
/usr/share/java/netty/netty-codec-dns.jar
/usr/share/java/netty/netty-codec-haproxy.jar
/usr/share/java/netty/netty-codec-http.jar
/usr/share/java/netty/netty-codec-http2.jar
/usr/share/java/netty/netty-codec-memcache.jar
/usr/share/java/netty/netty-codec-mqtt.jar
/usr/share/java/netty/netty-codec-redis.jar
/usr/share/java/netty/netty-codec-smtp.jar
/usr/share/java/netty/netty-codec-socks.jar
/usr/share/java/netty/netty-codec-stomp.jar
/usr/share/java/netty/netty-codec.jar
/usr/share/java/netty/netty-common.jar
/usr/share/java/netty/netty-dev-tools.jar
/usr/share/java/netty/netty-handler-proxy.jar
/usr/share/java/netty/netty-handler.jar
/usr/share/java/netty/netty-resolver-dns.jar
/usr/share/java/netty/netty-resolver.jar
/usr/share/java/netty/netty-transport.jar
/usr/share/licenses/netty
/usr/share/licenses/netty/LICENSE.txt
/usr/share/licenses/netty/NOTICE.txt
/usr/share/maven-metadata/netty.xml
/usr/share/maven-poms/netty
/usr/share/maven-poms/netty/netty-bom.pom
/usr/share/maven-poms/netty/netty-buffer.pom
/usr/share/maven-poms/netty/netty-codec-dns.pom
/usr/share/maven-poms/netty/netty-codec-haproxy.pom
/usr/share/maven-poms/netty/netty-codec-http.pom
/usr/share/maven-poms/netty/netty-codec-http2.pom
/usr/share/maven-poms/netty/netty-codec-memcache.pom
/usr/share/maven-poms/netty/netty-codec-mqtt.pom
/usr/share/maven-poms/netty/netty-codec-redis.pom
/usr/share/maven-poms/netty/netty-codec-smtp.pom
/usr/share/maven-poms/netty/netty-codec-socks.pom
/usr/share/maven-poms/netty/netty-codec-stomp.pom
/usr/share/maven-poms/netty/netty-codec.pom
/usr/share/maven-poms/netty/netty-common.pom
/usr/share/maven-poms/netty/netty-dev-tools.pom
/usr/share/maven-poms/netty/netty-handler-proxy.pom
/usr/share/maven-poms/netty/netty-handler.pom
/usr/share/maven-poms/netty/netty-parent.pom
/usr/share/maven-poms/netty/netty-resolver-dns.pom
/usr/share/maven-poms/netty/netty-resolver.pom
/usr/share/maven-poms/netty/netty-transport.pom

References

Summary

In this tutorial we learn how to install netty on Fedora 34 using yum and dnf.