Introduction
In this tutorial we learn how to install socat
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install socat.
Install socat on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the socat
package we can use the following command:
sudo dnf remove socat
socat Package Contents on CentOS 8
/usr/bin/filan
/usr/bin/procan
/usr/bin/socat
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/fa5a880ed6bf0f7ad32db7befd26f631d1faa1
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/d5e6c7f9589de3873195e0527ccb65c6c01342
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/4dd561bee08f48d71e386fd13fd7e1b17a2137
/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 CentOS 8 using yum and dnf.