SUMMARY: matching files to packages

From: Chad Campbell (
Date: Tue Jun 20 2000 - 07:58:47 CDT

> Does anyone know of a good way to find out which Solaris package
> installs a certain file? Specifically, I need to find out which package
> belongs to.

Thanks to everyone who replied. I received so many replies that I can't
thank everyone in this message. It turns out that there are 2 good ways
to do this, and Kevin Maguire pointed out both, so I'm using his reply
as the summary.

2 ways:

% fgrep /var/sadm/install/contents
/usr/lib/ s none SUNWcsu
/usr/lib/ f none 0755 bin bin 6124 35928 869026291 SUNWcsu

% pkgchk -l -p /usr/lib/
Pathname: /usr/lib/
Type: regular file
Expected mode: 0755
Expected owner: bin
Expected group: bin
Expected file size (bytes): 6124
Expected sum(1) of contents: 35928
Expected last modification: Jul 16 06:11:31 1997
Referenced by the following packages:
Current status: installed

Way 1 is quickest.

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:10 CDT