Help Installing qpdfview and QT on RHEL 8.4

Latest response

I'm a bit green here and with RHEL server management so forgive me if I'm asking something really obvious, or doing something dumb, but I have been unable to find info on installing this package on RHEL.

I'm trying to install 'qpdfview' on RHEL 8.4 test server and running into trouble with dependencies. Would like some advice. Our production server has a GUI system that requires this package, so I'm trying it on the test server first.

Summary:
- dnf : says it can't find the package "qpdfview". Am I missing a repo?
- rpm binary: I tried installing a downloaded CentOS binary on our test server and that led to many missing dependencies.
- looks like the centos binary needs 'qt4' installed, but I can't see a candidate package via repo / dnf

-- dnf --

 dnf install "qpdfview"

Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)     36 kB/s | 2.8 kB     00:00    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)     37 kB/s | 2.8 kB     00:00    
Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs)     26 kB/s | 2.1 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)     32 kB/s | 2.4 kB     00:00    
EPEL8 x86_64     39 kB/s | 2.8 kB     00:00    
No match for argument: qpdfview
Error: Unable to find a match: qpdfview

-- rpm binary --
Not sure about how safe a CentOS 8 binary is but I'm stuck and its a test server.... Is this right way to go about it? Should I go and install the CentOS 8 QT4 from rpm binaries?

The package binaries for CentOS 8 and other OS's can be found here:
https://pkgs.org/download/qpdfview
https://pkgs.org/download/qpdfview-common

 rpm -i qpdfview*

warning: qpdfview-0.4.18-3.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 2dcd03a2: NOKEY
error: Failed dependencies:
        libQtCore.so.4()(64bit) is needed by qpdfview-0.4.18-3.el8.x86_64
        libQtDBus.so.4()(64bit) is needed by qpdfview-0.4.18-3.el8.x86_64
        libQtGui.so.4()(64bit) is needed by qpdfview-0.4.18-3.el8.x86_64
        libQtSql.so.4()(64bit) is needed by qpdfview-0.4.18-3.el8.x86_64
        libQtSvg.so.4()(64bit) is needed by qpdfview-0.4.18-3.el8.x86_64
        libQtXml.so.4()(64bit) is needed by qpdfview-0.4.18-3.el8.x86_64
        libpoppler-qt4.so.4()(64bit) is needed by qpdfview-0.4.18-3.el8.x86_64
        libspectre.so.1()(64bit) is needed by qpdfview-0.4.18-3.el8.x86_64
        qt-sqlite is needed by qpdfview-0.4.18-3.el8.x86_64

Responses

You almost certainly need to enable the repository listed on centos.pkgs.org; scroll to the "Download" section to see the relevant URLs for the "Raven" repository.

Note, however, the red box with a warning that "Raven" is a third-party repository. Also note that the repository is hosted on the su domain, which in the past has been associated with "cybercriminals".

There are alternatives. The qpdfview package is available in Fedora, so one could always build it from source on RHEL 8.4, or request that it be added to EPEL.

Hi Robert, Thanks for this, the Fedora sourced RPMs would be far more trustworthy.

Actually you can see when I run dnf install xyz that EPEL is supposed to be enabled, and yet no qt packages? Isn't that a bit odd?

This is using the Fedora built RPMs for qt4:

rpm -i qpdfview-0.4.18-4.fc33.x86_64.rpm qpdfview-common-0.4.18-4.fc33.noarch.rpm

warning: qpdfview-common-0.4.18-4.fc33.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 9570ff31: NOKEY
error: Failed dependencies:
        libQtCore.so.4()(64bit) is needed by qpdfview-0.4.18-4.fc33.x86_64
        libQtDBus.so.4()(64bit) is needed by qpdfview-0.4.18-4.fc33.x86_64
        libQtGui.so.4()(64bit) is needed by qpdfview-0.4.18-4.fc33.x86_64
        libQtSql.so.4()(64bit) is needed by qpdfview-0.4.18-4.fc33.x86_64
        libQtXml.so.4()(64bit) is needed by qpdfview-0.4.18-4.fc33.x86_64
        libdjvulibre.so.21()(64bit) is needed by qpdfview-0.4.18-4.fc33.x86_64
        libpoppler-qt4.so.4()(64bit) is needed by qpdfview-0.4.18-4.fc33.x86_64
        libspectre.so.1()(64bit) is needed by qpdfview-0.4.18-4.fc33.x86_64

dnf install qt

Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 20 kB/s | 2.8 kB     00:00    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 21 kB/s | 2.8 kB     00:00    
Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) 15 kB/s | 2.1 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 17 kB/s | 2.4 kB     00:00    
EPEL8 x86_64  21 kB/s | 2.8 kB     00:00    
No match for argument: qt
Error: Unable to find a match: qt

 dnf install qt4

Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 21 kB/s | 2.8 kB     00:00    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 21 kB/s | 2.8 kB     00:00    
Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) 15 kB/s | 2.1 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 17 kB/s | 2.4 kB     00:00    
EPEL8 x86_64 21 kB/s | 2.8 kB     00:00    
No match for argument: qt4
Error: Unable to find a match: qt4

Attempt #3 - failed due to version conflicts I downloaded rpms for all the dependencies I could find from Fedora32 here: https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/32/Everything/x86_64/os/Packages/

rpm -i qpdfview-common-0.4.18-3.fc32.noarch.rpm qpdfview-qt5-0.4.18-3.fc32.x86_64.rpm qpdf-libs-9.1.1-2.fc32.x86_64.rpm \
    qt5-qtbase-5.13.2-4.fc32.x86_64.rpm qt5-qtbase-common-5.13.2-4.fc32.noarch.rpm qt-settings-32.0-3.fc32.noarch.rpm \
    qt5-qtbase-gui-5.13.2-4.fc32.x86_64.rpm libxkbcommon-x11-0.10.0-2.fc32.x86_64.rpm libxkbcommon-0.10.0-2.fc32.x86_64.rpm \
    libspectre-0.2.8-10.fc32.x86_64.rpm libstdc++-10.0.1-0.11.fc32.x86_64.rpm libicu-65.1-2.fc32.x86_64.rpm \
    djvulibre-libs-3.5.27-19.fc32.x86_64.rpm poppler-data-0.4.9-5.fc32.noarch.rpm \
    poppler-0.84.0-2.fc32.x86_64.rpm poppler-qt5-0.84.0-2.fc32.x86_64.rpm  \
    glibc-2.31-2.fc32.x86_64.rpm.1 glibc-langpack-en-2.31-2.fc32.x86_64.rpm.1 glibc-common-2.31-2.fc32.x86_64.rpm 

Then I ran into the following a stream of errors such as:

file /usr/lib64/gconv/libJIS.so from install of glibc-2.31-2.fc32.x86_64 conflicts with file from package glibc-2.28-151.el8.x86_64

OK I probably could just upgrade glibc but instead I wanted to keep closer to the current system version of glibc which is 2.28.

Attempt #4 Success - used Fedora 30 repo

It may be that my EPEL repo isn't working?.. however setting up a repo using Fedora 30 packages was simple and installed quickly and easily.

nano /etc/yum.repos.d/fedora30.repo
# File:  /etc/yum.repos.d/fedora30.repo
[fedora30]
name = Fedora30
baseurl = https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/30/Everything/x86_64/os
enabled = 1
gpgcheck = 0
dnf install qpdfview

Success !

Now I think it would be best to disable that Fedora30 repo, don't you think?