From owner-freebsd-questions Fri Nov 8 3:38:10 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 9249C37B407 for ; Fri, 8 Nov 2002 03:38:05 -0800 (PST) Received: from ene.asda.gr (ene.asda.gr [193.92.118.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B9BF43E3B for ; Fri, 8 Nov 2002 03:38:04 -0800 (PST) (envelope-from lefty@ene.asda.gr) Received: from ene.asda.gr (lefty.ene.asda.gr [193.92.118.162]) (authenticated bits=0) by ene.asda.gr (8.12.6/8.12.6) with ESMTP id gA8BbpEw087608; Fri, 8 Nov 2002 13:37:57 +0200 (EET) (envelope-from lefty@ene.asda.gr) Message-ID: <3DCBA22E.C42147C8@ene.asda.gr> Date: Fri, 08 Nov 2002 13:38:22 +0200 From: Lefteris Tsintjelis X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en,el MIME-Version: 1.0 To: conrads@cox.net Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Port managment References: Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-0.7 required=5.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, X_ACCEPT_LANG version=2.43 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 Just to sum it up for the archives Conrad Sabatier wrote: > > On 07-Nov-2002 Lefteris Tsintjelis wrote: > > Hi, > > > > I have acrually a few questions: > > > > 1) How can I find ports that do not depend in any other ports? > > pkg_info -ar Or, a very nice port (/usr/ports/sysutils/pkg_tree) I just found. It does the same job with better on screen results. It can even display dependencies of the dependencies in a nice graphical tree. pkg_tree -v > > 2) How can I find files that are unused by any port? > > /usr/ports/Tools/scripts/check_consistency I think /usr/ports/Tools/scripts/consistency-check examines modified files within /usr/local/bin only. > or > > pkg_which file(s) A better way to examine files in any path would be to use pkg_which -v Something like "find -type f | xargs pkg_which -v | fgrep '?'" would check against any port in any path. > > 3) How can I find modified files? > > pkg_info -ag > > > 4) How can I find missing port files? > > Need some clarification as to what you mean. I think your previous answer covers this one as well. I meant if any of the already installed port files are missing. "pkg_info -ag" displays results of any modified/missing port files. Is there a way to also check the system (/bin /sbin ...) for modified/missing/extra files? > > 5) _AND_ (yes finally) How can I find missing port dependencies? > > pkg_info -I $(pkg_info -arq | cut -d ' ' -f 2) I am not sure here if the results are any missing port dependencies. I get a multiple list of the ports that are already installed. Thanks, Lefteris > -- > Conrad Sabatier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message