From owner-freebsd-questions@FreeBSD.ORG Wed Jun 27 04:54:52 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2788816A400 for ; Wed, 27 Jun 2007 04:54:52 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 874B013C4C2 for ; Wed, 27 Jun 2007 04:54:51 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so283772uge for ; Tue, 26 Jun 2007 21:54:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pYdPdIVSs9gnOXAVIvVl2Jm6a8S3tQWlMaGYyRUW6ARItuX4J68Zwer4KOW6KAtPDny3uUukeWUsqO02tPbL47kA5HA4rCwVab5IQAhk3BnCHS54nv0HXfiJYgUjxoWWV4JbpVdzxplTH7gvCdAeCh+Xxx1YKlkOrbJp0u3fiwA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZUw5V8/s9N07QKynQXfR/2OGZrZBWemZ6gnzkyRwb/azpgcG5g6k8osvcXyJbbFkQHkrZw7eMkRoj+y+Tn2+6SHi42p63Z9kpyawWY182cb87Vzxnn7nQS+ipc//4V3G7hKi5trgp6Cs4/WVggWFN2DqwSN7lYsVwu6sqneX3is= Received: by 10.82.136.4 with SMTP id j4mr347382bud.1182920090317; Tue, 26 Jun 2007 21:54:50 -0700 (PDT) Received: by 10.82.187.6 with HTTP; Tue, 26 Jun 2007 21:54:50 -0700 (PDT) Message-ID: Date: Tue, 26 Jun 2007 23:54:50 -0500 From: "illoai@gmail.com" To: "Norberto Meijome" In-Reply-To: <20070626204422.69bdbcba@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1182844376.9138.31.camel@joe.realss.com> <20070626204422.69bdbcba@localhost> Cc: FreeBSD Questions ML , Zhang Weiwu Subject: Re: commandline to remove a package and its dependencies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 04:54:52 -0000 On 26/06/07, Norberto Meijome wrote: > [ added freebsd-questions to CC: ] > > On Tue, 26 Jun 2007 15:52:56 +0800 > Zhang Weiwu wrote: > > > From: Zhang Weiwu > > To: Norberto Meijome > > Subject: commandline to remove a package and its dependencies > > Date: Tue, 26 Jun 2007 15:52:56 +0800 > > X-Mailer: Evolution 2.8.2 > > Organization: Real Softservice > > > > Dear list > > > > Stupid question again. Is there a commandline tool that I can use to > > remove a package 'wmaker', and then it will prompt me if I wish to > > remove packages that was required only by 'wmaker' and after wmaker is > > removed, become required by no other packages. Such packages existed > > only for 'wmaker' is very likely should be removed together with wmaker. > > Hi Zhang, > you basically want to remove "leaves" from the package tree - install > pkg_cutleaves from ports : > > pkg_cutleaves-20061113 Interactive script for deinstalling 'leaf' packages > > I suggest you run it interactively, as well as creating a file with exclusions > (there are some leaves that you want to keep of course). I run it as : > > [betom@ayiin] [Tue Jun 26 20:43:55 2007] > /usr/home/betom > $ cat bin/show_pkg_leaves.sh > #!/bin/sh > pkg_cutleaves -xcl For something htat is part of the extant base: # pkg_delete -rd quack-bark-9.9.9 Though you may want to add -n the first go. -- --