How To Install socat on Fedora 34

socat is Bidirectional data relay between two data channels (’netcat++')

Introduction

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

What is socat

Socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU line editor (readline), a program, or a combination of two of these.

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

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

sudo dnf -y install socat

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

sudo yum -y install socat

How To Uninstall socat on Fedora 34

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

sudo dnf remove socat

socat Package Contents on Fedora 34

/usr/bin/filan
/usr/bin/procan
/usr/bin/socat
/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/50a89b3d5ffd8386290241c10fa2877c9808c7
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/a47a45e543e3d0dcd1240d540891b7490847ff
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/cc5d1f419ab8975f8b9eb7296f75eeb69234cf
/usr/share/doc/socat
/usr/share/doc/socat/BUGREPORTS
/usr/share/doc/socat/CHANGES
/usr/share/doc/socat/COPYING
/usr/share/doc/socat/COPYING.OpenSSL
/usr/share/doc/socat/DEVELOPMENT
/usr/share/doc/socat/EXAMPLES
/usr/share/doc/socat/FAQ
/usr/share/doc/socat/PORTING
/usr/share/doc/socat/README
/usr/share/doc/socat/SECURITY
/usr/share/doc/socat/daemon.sh
/usr/share/doc/socat/ftp.sh
/usr/share/doc/socat/gatherinfo.sh
/usr/share/doc/socat/mail.sh
/usr/share/doc/socat/proxy.sh
/usr/share/doc/socat/proxyecho.sh
/usr/share/doc/socat/readline-test.sh
/usr/share/doc/socat/readline.sh
/usr/share/doc/socat/socat_buildscript_for_android.sh
/usr/share/doc/socat/socks4a-echo.sh
/usr/share/doc/socat/socks4echo.sh
/usr/share/doc/socat/test.sh
/usr/share/man/man1/filan.1.gz
/usr/share/man/man1/procan.1.gz
/usr/share/man/man1/socat.1.gz

References

Summary

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