Query a package

Hi all,

On debian , what is the equivalent of rpm -qf and rpm -qi?

please find below an example I am looking for.

BASH:~/-> rpm -qf /usr/libexec/rtkit-daemon
rtkit-0.4-1.fc12.i686
BASH:~/-> rpm -qi rtkit
Name : rtkit Relocations: (not relocatable)
Version : 0.4 Vendor: Fedora Project
Release : 1.fc12 Build Date: Tue 04 Aug 2009 09:53:30 PM EDT
Install Date: Tue 10 Nov 2009 02:39:12 PM EST Build Host: x86-2.fedora.phx.redhat.com
Group : System Environment/Base Source RPM: rtkit-0.4-1.fc12.src.rpm
Size : 109020 License: GPLv3+ and BSD
Signature : RSA/SHA1, Mon 10 Aug 2009 12:00:18 AM EDT, Key ID 9d1cc34857bbccba
Packager : Fedora Project
Summary : Realtime Policy and Watchdog Daemon
Description :
RealtimeKit is a D-Bus system service that changes the
scheduling policy of user processes/threads to SCHED_RR (i.e. realtime
scheduling mode) on request. It is intended to be used as a secure
mechanism to allow real-time scheduling to be used by normal user
processes.

Thanks for your help.

Olivier

To show which package a file belongs to:
dpkg -S /usr/lib/rtkit/rtkit-daemon | awk -F: '{print $1}'
rtkit

To show package information:
apt-cache show rtkit
1 Like

many thanks in2nix4file for your quick answer.