How To Install qt5-qtcharts on CentOS 8

qt5-qtcharts is Qt5 - Charts component

Introduction

In this tutorial we learn how to install qt5-qtcharts on CentOS 8.

What is qt5-qtcharts

Qt Charts module provides a set of easy to use chart components. It uses the Qt Graphics View Framework, therefore charts can be easily integrated to modern user interfaces. Qt Charts can be used as QWidgets, QGraphicsWidget, or QML types. Users can easily create impressive graphs by selecting one of the charts themes.

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

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

sudo dnf -y install qt5-qtcharts

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

sudo yum -y install qt5-qtcharts

How To Uninstall qt5-qtcharts on CentOS 8

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

sudo dnf remove qt5-qtcharts

qt5-qtcharts Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/88
/usr/lib/.build-id/88/45b6e34197b3b38dec8ab92a1e0e3cf6a85d70
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/1fcf879388d02f7d50fd7b80c89bba8bb6565d
/usr/lib64/libQt5Charts.so.5
/usr/lib64/libQt5Charts.so.5.12
/usr/lib64/libQt5Charts.so.5.12.8
/usr/lib64/qt5/qml/QtCharts
/usr/lib64/qt5/qml/QtCharts/designer
/usr/lib64/qt5/qml/QtCharts/designer/ChartViewSpecifics.qml
/usr/lib64/qt5/qml/QtCharts/designer/default
/usr/lib64/qt5/qml/QtCharts/designer/default/AreaSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/BarSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/BoxPlotSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/HorizontalBarSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/HorizontalPercentBarSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/HorizontalStackedBarSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/LineSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/PercentBarSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/PieSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/PolarAreaSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/PolarLineSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/PolarScatterSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/PolarSplineSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/ScatterSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/SplineSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/default/StackedBarSeries.qml
/usr/lib64/qt5/qml/QtCharts/designer/images
/usr/lib64/qt5/qml/QtCharts/designer/images/areaseries-chart-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/areaseries-chart-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/areaseries-polar-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/areaseries-polar-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/barseries-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/barseries-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/boxplotseries-chart-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/boxplotseries-chart-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/horizontalbarseries-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/horizontalbarseries-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/horizontalpercentbarseries-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/horizontalpercentbarseries-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/horizontalstackedbarseries-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/horizontalstackedbarseries-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/lineseries-chart-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/lineseries-chart-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/lineseries-polar-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/lineseries-polar-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/percentbarseries-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/percentbarseries-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/pieseries-chart-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/pieseries-chart-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/scatterseries-chart-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/scatterseries-chart-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/scatterseries-polar-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/scatterseries-polar-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/splineseries-chart-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/splineseries-chart-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/splineseries-polar-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/splineseries-polar-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/images/stackedbarseries-icon.png
/usr/lib64/qt5/qml/QtCharts/designer/images/stackedbarseries-icon16.png
/usr/lib64/qt5/qml/QtCharts/designer/qtcharts.metainfo
/usr/lib64/qt5/qml/QtCharts/libqtchartsqml2.so
/usr/lib64/qt5/qml/QtCharts/plugins.qmltypes
/usr/lib64/qt5/qml/QtCharts/qmldir
/usr/share/licenses/qt5-qtcharts
/usr/share/licenses/qt5-qtcharts/LICENSE.GPL3

References

Summary

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