Determining what port owns a file

Dan Nelson dnelson at allantgroup.com
Mon Apr 4 13:50:48 PDT 2005


In the last episode (Apr 04), Lowell Gilbert said:
> Mac Mason <mac at cs.hmc.edu> writes:
> 
> > I want to put kghostview on a machine, but I don't want to install too
> > much of KDE in the progress.
> > 
> > Given that I have another machine with it already installed, how might I
> > go about figuring out which port owns, say, /usr/local/bin/kghostview?
> 
> If you have portupgrade installed, then pkg_which(1) will tell you.
> Otherwise, "pkg_info -La" and a bit of searching will do the job.

"pkg_info -W filename" does what "pkg_which filename" does, just a bit
slower (and for only one file at a time)

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list