checking against plist

Jeremy Chadwick koitsu at FreeBSD.org
Mon Jun 16 05:25:37 UTC 2008


On Sun, Jun 15, 2008 at 09:06:36PM -0700, Garrett Cooper wrote:
> On Sun, Jun 15, 2008 at 8:35 PM, Sahil Tandon <sahil at tandon.net> wrote:
> > Robert Huff <roberthuff at rcn.com> wrote:
> >
> >>       Once a port is installed, is there any of using the plist (or
> >> aother mechanism) to check whether the files ar still there?
> >> (After, say, a system crash.)
> >
> > You are missing a few words up there, so hard to understand your exact
> > problem/question.  You can simply list the contents of the plist and check
> > whether those files still exist following a crash.
> >
> > --
> > Sahil Tandon <sahil at tandon.net>
> 
> pkg_info -g (at least that's what it should be IMHO)?
> 
> If this doesn't exist, let me know and I'll see about adding that
> feature to pkg_info...

pkg_info -g should work.  What the OP wants is more or less this:

for i in `pkg_info -Ea`; do pkg_info -g $i; done

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |



More information about the freebsd-ports mailing list