Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Linux Commands / IT Support Guides

Find the RPM package behind a Linux executable

On an RPM-based host, package ownership helps connect an executable to the correct update and support channel. Check metadata before overwriting a system binary.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution

Try the diagnostic command

Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.

rpm -qf /usr/bin/bash

How to read the result

The query reports which installed package owns the given path. It does not automatically establish that the installed file still matches the package payload.

What to do next

Substitute the failing executable's real path, then collect the package version and compare it with a working host in the same managed release group.

Before you make a change

Use this on RPM-based distributions. Local or containerized installations can live outside the host package database and need separate investigation.

Share this article

Back to all articles