LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   How do I find out which package an app is in? (https://www.linuxquestions.org/questions/centos-111/how-do-i-find-out-which-package-an-app-is-in-4175677411/)

RandomTroll 06-21-2020 04:54 AM

How do I find out which package an app is in?
 
I use pdftest. It's in the poppler package in Slackware, but not in CentOS. I don't know CentOS.

berndbausch 06-21-2020 06:33 AM

Centos has this very convenient feature:
Code:

yum whatprovides pdftest
If that results in too much output (unlikely for this particular example), use wildcards:
Code:

yum whatprovides '*/pdftest'
In Centos 8 you can use dnf instead of yum. Instead of whatprovides, lazy typers get away with provides.

Same for Fedora (probably dnf only).

Note that it will only discover packages that are in the currently configured repositories.

pan64 06-21-2020 09:34 AM

for me the usual way is to look for <distro package search> on the net. you will quickly find a good answer. Like this: https://linuxhint.com/centos_package_search/

RandomTroll 06-22-2020 06:11 AM

Quote:

Originally Posted by berndbausch (Post 6136611)
Centos has this very convenient feature:
Code:

yum whatprovides pdftest

Is that different from 'provides', which 'yum -help' returned, so I already tried. It returns:
Quote:

EA4 2.9 kB 00:00 ...
cpanel-addons-production-feed | 2.9 kB 00:00 ...
base | 3.7 kB 00:00
epel | 4.7 kB 00:00
extras | 3.4 kB 00:00
hgdedi | 2.9 kB 00:00
ksplice-uptrack | 951 B 00:00
mysql-connectors-community | 2.5 kB 00:00
mysql-tools-community | 2.5 kB 00:00
mysql57-community | 2.5 kB 00:00
ul | 2.9 kB 00:00
ul_hostgator | 2.9 kB 00:00
updates | 3.4 kB 00:00
Which seems unlikely.


Code:

yum whatprovides '*/pdftest'
returns no matches.

Quote:

Originally Posted by pan64 (Post 6136672)
for me the usual way is to look for <distro package search> on the net. you will quickly find a good answer. Like this: https://linuxhint.com/centos_package_search/

Returns no matches. I guess it doesn't have it. I already built it, but it's vulnerable to upgrades of dependencies, why I wanted a package version.

Thanks to both of you.

pan64 06-22-2020 07:03 AM

do you mean this: https://github.com/codeborne/pdf-test? Or something else?

shruggy 06-22-2020 08:13 AM

Quote:

Originally Posted by RandomTroll (Post 6136600)
It's in the poppler package in Slackware

Are you sure? I don't see it in the file list. There's one utility, pdfdetach, that Slackware ships in xpdf, whereas other distros have it in poppler, poppler-utils or poppler-tools. But I don't see pdftest in the file list of xpdf either. The Poppler project has a test utility, but it's called test-poppler.

RandomTroll 06-23-2020 08:32 AM

Quote:

Originally Posted by pan64 (Post 6136908)
do you mean this: https://github.com/codeborne/pdf-test? Or something else?

Quote:

Originally Posted by shruggy (Post 6136925)
Are you sure? I don't see it in the file list.

I meant pdftotext. My brain failed. I don't have the coronavirus, so I don't have a diagnosis. Apologies. It's in poppler-utils, which isn't a Slackware package, but 'yum provides' returns it, so I should have had it before I asked.


All times are GMT -5. The time now is 10:15 AM.