Operating System - Tru64 Unix
1745923 Members
4126 Online
108723 Solutions
New Discussion юеВ

what package does file foo come from ?

 
pdxcity
Advisor

what package does file foo come from ?

is there a way to determine what package
a particular file comes from ?

2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: what package does file foo come from ?

Maybe, it depends, what is the file?

You can use setld -i to query the files provided by a subset. You can create a script to query all subsets.

You can use rpm -qil to query the files provided by an rpm package.

If was installed from source, no command available.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Venkatesh BL
Honored Contributor

Re: what package does file foo come from ?

In Tru64, one raw way to do this is to go to '/usr/.smdb.' directory and then do a grep for the file you are looking for.