LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 06-21-2020, 04:54 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,431

Rep: Reputation: 238Reputation: 238Reputation: 238
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.
 
Old 06-21-2020, 06:33 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,960

Rep: Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481
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.

Last edited by berndbausch; 06-21-2020 at 06:34 AM.
 
1 members found this post helpful.
Old 06-21-2020, 09:34 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,808

Rep: Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867
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/
 
1 members found this post helpful.
Old 06-22-2020, 06:11 AM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,431

Original Poster
Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by berndbausch View Post
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 View Post
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.
 
Old 06-22-2020, 07:03 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,808

Rep: Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867
do you mean this: https://github.com/codeborne/pdf-test? Or something else?
 
Old 06-22-2020, 08:13 AM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 1,133

Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
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.
 
Old 06-23-2020, 08:32 AM   #7
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,431

Original Poster
Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by pan64 View Post
do you mean this: https://github.com/codeborne/pdf-test? Or something else?
Quote:
Originally Posted by shruggy View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 12 04-25-2019 07:33 AM
[SOLVED] apt-get - find out which package is requiring installations on upgrade crazy-yiuf Linux - Newbie 2 11-24-2016 04:00 PM
[SOLVED] How to find out which package needed for a particular file? catkin Slackware 3 10-07-2009 07:49 AM
Find out which program is using which device d_dallis_gr Linux - Software 5 06-19-2005 11:39 PM
Command to find out which package contains which file ? javeree Slackware 6 07-10-2004 06:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration