From owner-freebsd-questions Wed Sep 20 14:17:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id 52E8D37B422 for ; Wed, 20 Sep 2000 14:17:29 -0700 (PDT) Received: from parish ([62.255.96.218]) by mta01-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000920211727.HZUU16640.mta01-svc.ntlworld.com@parish>; Wed, 20 Sep 2000 22:17:27 +0100 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id e8KLGha02866; Wed, 20 Sep 2000 22:16:43 +0100 (BST) (envelope-from mark) Date: Wed, 20 Sep 2000 22:16:43 +0100 From: Mark Ovens To: Mike Morgan Cc: "'freebsd-questions@freebsd.org'" Subject: Re: deleting all installed ports/pkgs Message-ID: <20000920221643.C1612@parish> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from mikemorgan@financialfusion.com on Wed, Sep 20, 2000 at 02:58:44PM -0600 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Sep 20, 2000 at 02:58:44PM -0600, Mike Morgan wrote: > > > Is there a command which would delete all the ports on my system or > recursively delete all ports dependant on a particular port? > Do you mean delete all *installed* ports/packages or all the port skeletons under /usr/ports? If it's the former, and you are _absolutely_ _certain_ that you want to do this then try: % sh (if you are running csh/tcsh) $ su Password: # for i in `ls /var/db/pkg` > do > pkg_delete -f $i > done Note that the ``-f'' is needed because without it a port/package won't be deleted if a dependency is still installed. You will also see lots of warnings about this (and missing files) because you are removing them in alphabetical order. #include I accept no responsibility for you screwing your system (e.g. XFree will probably get removed as well). > tnx, > Michael Morgan -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message