How To Install socket_wrapper on CentOS 8

socket_wrapper is A library passing all socket communications through Unix sockets A library passing all socket communications through Unix sockets

Introduction

In this tutorial we learn how to install socket_wrapper on CentOS 8.

What is socket_wrapper

socket_wrapper aims to help client/server software development teams willing to gain full functional test coverage. It makes it possible to run several instances of the full software stack on the same machine and perform locally functional testing of complex network configurations. To use it set the following environment variables LD_PRELOAD=libsocket_wrapper.so SOCKET_WRAPPER_DIR=/path/to/swrap_dir This package doesn’t have a devel package because this project is for development/testing. socket_wrapper 1.2.3 1.el8 x86_64 45 k socket_wrapper-1.2.3-1.el8.src.rpm powertools A library passing all socket communications through Unix sockets http BSD socket_wrapper aims to help client/server software development teams willing to gain full functional test coverage. It makes it possible to run several instances of the full software stack on the same machine and perform locally functional testing of complex network configurations. To use it set the following environment variables LD_PRELOAD=libsocket_wrapper.so SOCKET_WRAPPER_DIR=/path/to/swrap_dir This package doesn’t have a devel package because this project is for development/testing.

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

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

sudo dnf -y install socket_wrapper

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

sudo yum -y install socket_wrapper

How To Uninstall socket_wrapper on CentOS 8

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

sudo dnf remove socket_wrapper

socket_wrapper Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/0649170cbf850f3a001c63bf2a3357d280626d
/usr/lib/cmake/socket_wrapper
/usr/lib/cmake/socket_wrapper/socket_wrapper-config-version.cmake
/usr/lib/cmake/socket_wrapper/socket_wrapper-config.cmake
/usr/lib/libsocket_wrapper.so
/usr/lib/libsocket_wrapper.so.0
/usr/lib/libsocket_wrapper.so.0.1.13
/usr/lib/pkgconfig/socket_wrapper.pc
/usr/share/doc/socket_wrapper
/usr/share/doc/socket_wrapper/AUTHORS
/usr/share/doc/socket_wrapper/ChangeLog
/usr/share/doc/socket_wrapper/README.md
/usr/share/licenses/socket_wrapper
/usr/share/licenses/socket_wrapper/LICENSE
/usr/share/man/man1/socket_wrapper.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/6fdb4cac8ca411caa98908eeae634c0c9b4309
/usr/lib64/cmake/socket_wrapper
/usr/lib64/cmake/socket_wrapper/socket_wrapper-config-version.cmake
/usr/lib64/cmake/socket_wrapper/socket_wrapper-config.cmake
/usr/lib64/libsocket_wrapper.so
/usr/lib64/libsocket_wrapper.so.0
/usr/lib64/libsocket_wrapper.so.0.1.13
/usr/lib64/pkgconfig/socket_wrapper.pc
/usr/share/doc/socket_wrapper
/usr/share/doc/socket_wrapper/AUTHORS
/usr/share/doc/socket_wrapper/ChangeLog
/usr/share/doc/socket_wrapper/README.md
/usr/share/licenses/socket_wrapper
/usr/share/licenses/socket_wrapper/LICENSE
/usr/share/man/man1/socket_wrapper.1.gz

References

Summary

In this tutorial we learn how to install socket_wrapper on CentOS 8 using yum and dnf.