How To Install websocketpp-devel on CentOS 8
Introduction
In this tutorial we learn how to install websocketpp-devel
on CentOS 8.
What is websocketpp-devel
WebSocket++ is an open source (BSD license) header only C++ library that implements RFC6455 The WebSocket Protocol. It allows integrating WebSocket client and server functionality into C++ programs. It uses interchangeable network transport modules including one based on C++ iostreams and one based on Boost Asio.
We can use yum
or dnf
to install websocketpp-devel
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install websocketpp-devel.
Install websocketpp-devel 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 websocketpp-devel
using dnf
by running the following command:
sudo dnf -y install websocketpp-devel
Install websocketpp-devel 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 websocketpp-devel
using yum
by running the following command:
sudo yum -y install websocketpp-devel
How To Uninstall websocketpp-devel on CentOS 8
To uninstall only the websocketpp-devel
package we can use the following command:
sudo dnf remove websocketpp-devel
websocketpp-devel Package Contents on CentOS 8
/usr/include/websocketpp
/usr/include/websocketpp/CMakeFiles
/usr/include/websocketpp/base64
/usr/include/websocketpp/base64/base64.hpp
/usr/include/websocketpp/client.hpp
/usr/include/websocketpp/close.hpp
/usr/include/websocketpp/common
/usr/include/websocketpp/common/asio.hpp
/usr/include/websocketpp/common/asio_ssl.hpp
/usr/include/websocketpp/common/chrono.hpp
/usr/include/websocketpp/common/connection_hdl.hpp
/usr/include/websocketpp/common/cpp11.hpp
/usr/include/websocketpp/common/functional.hpp
/usr/include/websocketpp/common/md5.hpp
/usr/include/websocketpp/common/memory.hpp
/usr/include/websocketpp/common/network.hpp
/usr/include/websocketpp/common/platforms.hpp
/usr/include/websocketpp/common/random.hpp
/usr/include/websocketpp/common/regex.hpp
/usr/include/websocketpp/common/stdint.hpp
/usr/include/websocketpp/common/system_error.hpp
/usr/include/websocketpp/common/thread.hpp
/usr/include/websocketpp/common/time.hpp
/usr/include/websocketpp/common/type_traits.hpp
/usr/include/websocketpp/concurrency
/usr/include/websocketpp/concurrency/basic.hpp
/usr/include/websocketpp/concurrency/none.hpp
/usr/include/websocketpp/config
/usr/include/websocketpp/config/asio.hpp
/usr/include/websocketpp/config/asio_client.hpp
/usr/include/websocketpp/config/asio_no_tls.hpp
/usr/include/websocketpp/config/asio_no_tls_client.hpp
/usr/include/websocketpp/config/boost_config.hpp
/usr/include/websocketpp/config/core.hpp
/usr/include/websocketpp/config/core_client.hpp
/usr/include/websocketpp/config/debug.hpp
/usr/include/websocketpp/config/debug_asio.hpp
/usr/include/websocketpp/config/debug_asio_no_tls.hpp
/usr/include/websocketpp/config/minimal_client.hpp
/usr/include/websocketpp/config/minimal_server.hpp
/usr/include/websocketpp/connection.hpp
/usr/include/websocketpp/connection_base.hpp
/usr/include/websocketpp/endpoint.hpp
/usr/include/websocketpp/endpoint_base.hpp
/usr/include/websocketpp/error.hpp
/usr/include/websocketpp/extensions
/usr/include/websocketpp/extensions/extension.hpp
/usr/include/websocketpp/extensions/permessage_deflate
/usr/include/websocketpp/extensions/permessage_deflate/disabled.hpp
/usr/include/websocketpp/extensions/permessage_deflate/enabled.hpp
/usr/include/websocketpp/frame.hpp
/usr/include/websocketpp/http
/usr/include/websocketpp/http/constants.hpp
/usr/include/websocketpp/http/impl
/usr/include/websocketpp/http/impl/parser.hpp
/usr/include/websocketpp/http/impl/request.hpp
/usr/include/websocketpp/http/impl/response.hpp
/usr/include/websocketpp/http/parser.hpp
/usr/include/websocketpp/http/request.hpp
/usr/include/websocketpp/http/response.hpp
/usr/include/websocketpp/impl
/usr/include/websocketpp/impl/connection_impl.hpp
/usr/include/websocketpp/impl/endpoint_impl.hpp
/usr/include/websocketpp/impl/utilities_impl.hpp
/usr/include/websocketpp/logger
/usr/include/websocketpp/logger/basic.hpp
/usr/include/websocketpp/logger/levels.hpp
/usr/include/websocketpp/logger/stub.hpp
/usr/include/websocketpp/logger/syslog.hpp
/usr/include/websocketpp/message_buffer
/usr/include/websocketpp/message_buffer/alloc.hpp
/usr/include/websocketpp/message_buffer/message.hpp
/usr/include/websocketpp/message_buffer/pool.hpp
/usr/include/websocketpp/processors
/usr/include/websocketpp/processors/base.hpp
/usr/include/websocketpp/processors/hybi00.hpp
/usr/include/websocketpp/processors/hybi07.hpp
/usr/include/websocketpp/processors/hybi08.hpp
/usr/include/websocketpp/processors/hybi13.hpp
/usr/include/websocketpp/processors/processor.hpp
/usr/include/websocketpp/random
/usr/include/websocketpp/random/none.hpp
/usr/include/websocketpp/random/random_device.hpp
/usr/include/websocketpp/roles
/usr/include/websocketpp/roles/client_endpoint.hpp
/usr/include/websocketpp/roles/server_endpoint.hpp
/usr/include/websocketpp/server.hpp
/usr/include/websocketpp/sha1
/usr/include/websocketpp/sha1/sha1.hpp
/usr/include/websocketpp/transport
/usr/include/websocketpp/transport/asio
/usr/include/websocketpp/transport/asio/base.hpp
/usr/include/websocketpp/transport/asio/connection.hpp
/usr/include/websocketpp/transport/asio/endpoint.hpp
/usr/include/websocketpp/transport/asio/security
/usr/include/websocketpp/transport/asio/security/base.hpp
/usr/include/websocketpp/transport/asio/security/none.hpp
/usr/include/websocketpp/transport/asio/security/tls.hpp
/usr/include/websocketpp/transport/base
/usr/include/websocketpp/transport/base/connection.hpp
/usr/include/websocketpp/transport/base/endpoint.hpp
/usr/include/websocketpp/transport/debug
/usr/include/websocketpp/transport/debug/base.hpp
/usr/include/websocketpp/transport/debug/connection.hpp
/usr/include/websocketpp/transport/debug/endpoint.hpp
/usr/include/websocketpp/transport/iostream
/usr/include/websocketpp/transport/iostream/base.hpp
/usr/include/websocketpp/transport/iostream/connection.hpp
/usr/include/websocketpp/transport/iostream/endpoint.hpp
/usr/include/websocketpp/transport/stub
/usr/include/websocketpp/transport/stub/base.hpp
/usr/include/websocketpp/transport/stub/connection.hpp
/usr/include/websocketpp/transport/stub/endpoint.hpp
/usr/include/websocketpp/uri.hpp
/usr/include/websocketpp/utf8_validator.hpp
/usr/include/websocketpp/utilities.hpp
/usr/include/websocketpp/version.hpp
/usr/share/cmake
/usr/share/cmake/websocketpp
/usr/share/cmake/websocketpp/websocketpp-config.cmake
/usr/share/cmake/websocketpp/websocketpp-configVersion.cmake
/usr/share/doc/websocketpp-devel
/usr/share/doc/websocketpp-devel/changelog.md
/usr/share/doc/websocketpp-devel/readme.md
/usr/share/doc/websocketpp-devel/roadmap.md
/usr/share/licenses/websocketpp-devel
/usr/share/licenses/websocketpp-devel/COPYING
/usr/share/pkgconfig/websocketpp.pc
References
Summary
In this tutorial we learn how to install websocketpp-devel
on CentOS 8 using yum and dnf.