pkg_info question

2005-06-22 Thread Casey Scott
Is it possible to get pkg_info, or some other command, to show what package contains a file? E.g. find what package has /usr/local/bin/convert Casey ___ freebsd-questions@freebsd.org mailing list

Re: pkg_info question

2005-06-22 Thread Dan Nelson
In the last episode (Jun 22), Casey Scott said: Is it possible to get pkg_info, or some other command, to show what package contains a file? E.g. find what package has /usr/local/bin/convert pkg_info -W /usr/local/bin/convert Or if you have portupgrade installed, pkg_which

Re: pkg_info question

2005-06-22 Thread Casey Scott
Sorry, I meant I need to know what package a file belongs to that does not exist in the file system already. I need to know where to get something, not where it came from. In the last episode (Jun 22), Casey Scott said: Is it possible to get pkg_info, or some other command, to show what

Re: pkg_info question

2005-06-22 Thread Björn König
Casey Scott wrote: Sorry, I meant I need to know what package a file belongs to that does not exist in the file system already. I need to know where to get something, not where it came from. My CVSup script executes find /usr/ports -name pkg-plist* /path/to/somewhere after an update of

Re: pkg_info question

2005-06-22 Thread Casey Scott
Thanks. Good idea. How about this, its a little easier. #find ./ -name 'pkg-plist*' | xargs grep 'bin/convert' Casey Casey Scott wrote: Sorry, I meant I need to know what package a file belongs to that does not exist in the file system already. I need to know where to get something, not

Re: pkg_info question

2005-06-22 Thread Jim Trigg
On Wed, June 22, 2005 2:13 pm, Björn König said: Thus I can search a file with cat /path/to/somewhere | xargs grep 'pattern' You can avoid wasting a process by using the following instead: xargs grep 'pattern' /path/to/somewhere Jim -- Jim Trigg, Lord High Everything Else O- /\

Re: pkg_info question

2005-06-22 Thread Björn König
Casey Scott wrote: Thanks. Good idea. How about this, its a little easier. #find ./ -name 'pkg-plist*' | xargs grep 'bin/convert' Yes, it is easier if you do this only once. I do it several times and I want to benefit from a previous search. What is faster: to find more than 10.000

Re: pkg_info question

2005-06-22 Thread Björn König
Jim Trigg wrote: On Wed, June 22, 2005 2:13 pm, Björn König said: Thus I can search a file with cat /path/to/somewhere | xargs grep 'pattern' You can avoid wasting a process by using the following instead: xargs grep 'pattern' /path/to/somewhere Thanks. Where is my UUOC award? ;-)

Re: pkg_info question

2005-01-13 Thread Louis LeBlanc
On 01/12/05 06:01 PM, Kris Kennaway sat at the `puter and typed: On Wed, Jan 12, 2005 at 08:45:30PM -0500, Louis LeBlanc wrote: Hey folks. I'm trying to make a cruft killing run through my installed packages. What would make this a lot easier is if I could easily get a list of

pkg_info question

2005-01-12 Thread Louis LeBlanc
Hey folks. I'm trying to make a cruft killing run through my installed packages. What would make this a lot easier is if I could easily get a list of packages that are installed that are NOT required by other packages. I know that `pkg_info -aR` will give me all packages along with those that

Re: pkg_info question

2005-01-12 Thread Kris Kennaway
On Wed, Jan 12, 2005 at 08:45:30PM -0500, Louis LeBlanc wrote: Hey folks. I'm trying to make a cruft killing run through my installed packages. What would make this a lot easier is if I could easily get a list of packages that are installed that are NOT required by other packages. I know