CentOS: how to find out which package contains a specific command


On CentOS: how to find out which package contains a specific command?

You want to find out which package contains a specific command like convert, how to find out this?

Simple, you can use yum to find:

yum whatprovides '*bin/convert'

Result:

[root@tutorialspots ~]# yum whatprovides '*bin/convert'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: repos-tx.psychz.net
 * epel: kdeforge2.unl.edu
 * extras: centos.den.host-engine.com
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: repo.miserver.it.umich.edu
ImageMagick-6.7.8.9-15.el7_2.i686 : An X application for displaying and
                                  : manipulating images
Repo        : base
Matched from:
Filename    : /usr/bin/convert



ImageMagick-6.7.8.9-15.el7_2.x86_64 : An X application for displaying and
                                    : manipulating images
Repo        : base
Matched from:
Filename    : /usr/bin/convert



ImageMagick-7.0.8-12.x86_64 : Use ImageMagick to convert, edit, or compose
     ...: bitmap images in a variety of formats.  In addition resize, rotate,
     ...: shear, distort and transform images.
Repo        : installed
Matched from:
Filename    : /usr/bin/convert


centos find package

1 Comment

Leave a Reply