Steps to identify the source rpm of an installed binary

Tags: binary sourcepackage identificationrpm

Published on: August 10, 2014 by Karthikeyan B.

Steps to identify the source rpm of an installed binary


Identification of source rpm of an installed binary is essential at some points especially during upgrades or conflicting libraries.

Let us check which rpm provides /usr/sbin/sshd


The source RPM can be identified using the following options

# rpm -q --whatprovides /usr/sbin/sshd


Another Handy tool is

root@server [/]# rpm -qf /usr/sbin/sshd


In Debian based systems there are two ways one is using apt-file & dpkg -S

apt-file installation

This binary may not be available in all installation. Below are the steps to be used for the installation

apt-get install apt-file

Once this is done update the db using the following commands

apt-file update

The above check will give the result as given below

# apt-file search /usr/sbin/sshd

openssh-server: /usr/sbin/sshd

Using dpkg -S

# dpkg -S /usr/sbin/sshd

openssh-server: /usr/sbin/sshd


Category : Linux

Karthikeyan B.

Karthikeyan B.

Karthi always loves to tread through less traveled paths. His desire to decipher complex technologies and pursuit for excellence makes this otherwise jovial guy to a tough brain to crack when it comes to technology. He got great intrest in environmental issues and advocates for sustainable, inclusive, development patterns and projects.

You may also read:


Add new commentSIGN IN

Let's Connect

Get new updates


$0.000 items