Tuesday, June 23, 2009

Howto: Which file belongs to package?

It migh get quite tricky to determine which file or files belongs to a package. Here's a way to find which file belong to a package.

You can use the command pkgchk, to find out file /usr/bin/volcheck belongs to which package:
# pkgchk -l -p /usr/bin/volcheck
Pathname: /usr/bin/volcheck
Type: regular file
Expected mode: 4555Expected owner: root
Expected group: bin
Expected file size (bytes): 6044
Expected sum(1) of contents: 14489
Expected last modification: Nov 04 16:15:49 2002
Referenced by the following packages:
Current status: installed

Readers who read this page, also read:

Bookmark and Share My Zimbio http://www.wikio.com