Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jun 2008 22:25:36 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Garrett Cooper <yanefbsd@gmail.com>
Cc:        ports@freebsd.org, Robert Huff <roberthuff@rcn.com>, "sahil@tandon.net" <sahil@tandon.net>
Subject:   Re: checking against plist
Message-ID:  <20080616052536.GA46776@eos.sc1.parodius.com>
In-Reply-To: <7d6fde3d0806152106rf8339e7l1d25ad397bb18cfb@mail.gmail.com>
References:  <18517.39618.243382.192127@jerusalem.litteratus.org> <20080616033511.GA5538@shepherd> <7d6fde3d0806152106rf8339e7l1d25ad397bb18cfb@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@tandon.net> wrote:
> > Robert Huff <roberthuff@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@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 |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080616052536.GA46776>