From owner-freebsd-questions Sat Jan 25 8:37:44 2003 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 A5EB237B401 for ; Sat, 25 Jan 2003 08:37:42 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F43943F1E for ; Sat, 25 Jan 2003 08:37:41 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id h0PGbTHZ035783 for ; Sat, 25 Jan 2003 16:37:29 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id h0PGbOHl035782 for freebsd-questions@FreeBSD.ORG; Sat, 25 Jan 2003 16:37:24 GMT Date: Sat, 25 Jan 2003 16:37:24 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: Tracking dependencies... Message-ID: <20030125163724.GA19028@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <1043511656.272.15.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1043511656.272.15.camel@localhost> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT 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 On Sat, Jan 25, 2003 at 10:20:57AM -0600, Andy Akins wrote: > There are some ports installed on my machine (like Apache, and PHP) that > I did not install. I'm assuming that they were put in place due to > another port that had them as a dependency. Aside from looking on the > FreeBSD website or within the individual makefiles, is there a command > or commands that would display the packages/ports that require another > port? Since I'm not running a server, _I_ certainly don't need Apache or > PHP...so I'd like to know why they were installed so I can decide if I > can delete them and their dependent ports. pkg_info will tell you what you want to know about any currently installed port. eg: pkg_info -R www/apache\* Show all the ports that depend on some version of apache. pkg_info -r www/mod_php4-4.2.3 Show all of the ports that mod_php4 depends on. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message