From owner-freebsd-questions Thu Dec 12 10: 2:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0727837B401 for ; Thu, 12 Dec 2002 10:02:11 -0800 (PST) Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8678543ED4 for ; Thu, 12 Dec 2002 10:02:05 -0800 (PST) (envelope-from parv_fm@mailsent.net) Received: from sdn-ap-032dcwashp0262.dialsprint.net ([65.179.73.8] helo=moo.holy.cow) by scaup.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18MXek-0001ej-00; Thu, 12 Dec 2002 10:01:54 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id AF204B031; Thu, 12 Dec 2002 13:03:21 -0500 (EST) Date: Thu, 12 Dec 2002 13:03:21 -0500 From: parv To: Mark-Nathaniel Weisman Cc: fbsd Subject: Re: Installed Packages? Message-ID: <20021212180321.GA11246@moo.holy.cow> Mail-Followup-To: Mark-Nathaniel Weisman , fbsd References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG in message , wrote Mark-Nathaniel Weisman thusly... > > Is there a command that I can check to see if a particular package was > installed in the kernel the way it was supposed to? on way is to check if the supposedly installed files actually exists. sometimes they do not. try (assuming bourne like shell)... # given a package name, see if files exists # if they do not, ls will complain; only errors will be # shown pkg_info -L | xargs ls -l > /dev/null > Or maybe a list of all installed packages? this can be accomplished by pkg_info. personally i prefer the following (note: self promotion:)... perl program: http://www103.pair.com/parv/comp/unix/bin/listpkg.perl pod (plain old documentation): http://www103.pair.com/parv/comp/unix/doc/doc.bin/listpkg.perl.text a shell script which i no longer develop: http://www103.pair.com/parv/comp/unix/bin/listpkg - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message