How To Install socat on Rocky Linux 8

In this tutorial we learn how to install socat on Rocky Linux 8. socat is Bidirectional data relay between two data channels (’netcat++')

Introduction

In this tutorial we learn how to install socat on Rocky Linux 8.

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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install socat.

Install socat on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install socat using dnf by running the following command:

sudo dnf -y install socat

Install socat on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove socat

socat Package Contents on Rocky Linux 8

/usr/bin/filan
/usr/bin/procan
/usr/bin/socat
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/a2c4e16dff1e954b6e7bb05cd0a007cefd7be8
/usr/lib/.build-id/34
/usr/lib/.build-id/34/113ca110c133202f7f35d6078a5ed02f97984f
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/b13520ad8d5c74d38949e64c3d77c9f2f1be93
/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 Rocky Linux 8 using yum and dnf.