How To Install qt5-qtwebview on Rocky Linux 8

In this tutorial we learn how to install qt5-qtwebview on Rocky Linux 8. qt5-qtwebview is Qt5 - WebView component

Introduction

In this tutorial we learn how to install qt5-qtwebview on Rocky Linux 8.

What is qt5-qtwebview

Qt WebView provides a way to display web content in a QML application without necessarily including a full web browser stack by using native APIs where it makes sense.

We can use yum or dnf to install qt5-qtwebview on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install qt5-qtwebview.

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

sudo dnf -y install qt5-qtwebview

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

sudo yum -y install qt5-qtwebview

How To Uninstall qt5-qtwebview on Rocky Linux 8

To uninstall only the qt5-qtwebview package we can use the following command:

sudo dnf remove qt5-qtwebview

qt5-qtwebview Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/bc87533c3a5bc0f417ac55ffa3f74ad35adf60
/usr/lib/.build-id/30
/usr/lib/.build-id/30/9092cd840cb3198011352cf7b70b2c1f9ba7df
/usr/lib/.build-id/76
/usr/lib/.build-id/76/5394947f2f2d48fac68a70bba4a9bac2304450
/usr/lib64/libQt5WebView.so.5
/usr/lib64/libQt5WebView.so.5.12
/usr/lib64/libQt5WebView.so.5.12.8
/usr/lib64/qt5/plugins/webview
/usr/lib64/qt5/plugins/webview/libqtwebview_webengine.so
/usr/lib64/qt5/qml/QtWebView
/usr/lib64/qt5/qml/QtWebView/libdeclarative_webview.so
/usr/lib64/qt5/qml/QtWebView/plugins.qmltypes
/usr/lib64/qt5/qml/QtWebView/qmldir
/usr/share/licenses/qt5-qtwebview
/usr/share/licenses/qt5-qtwebview/LICENSE.FDL
/usr/share/licenses/qt5-qtwebview/LICENSE.GPLv2
/usr/share/licenses/qt5-qtwebview/LICENSE.GPLv3
/usr/share/licenses/qt5-qtwebview/LICENSE.LGPLv3

References

Summary

In this tutorial we learn how to install qt5-qtwebview on Rocky Linux 8 using yum and dnf.