From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 13:10:40 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E62D616A418 for ; Mon, 24 Sep 2007 13:10:40 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from sarevok.dnr.servegame.org (b83183.upc-b.chello.nl [212.83.83.183]) by mx1.freebsd.org (Postfix) with ESMTP id 9405E13C455 for ; Mon, 24 Sep 2007 13:10:40 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (unknown [66.230.99.27]) by sarevok.dnr.servegame.org (Postfix) with ESMTP id 2AEDEB886 for ; Mon, 24 Sep 2007 15:10:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 448CA1CDEE for ; Mon, 24 Sep 2007 05:10:37 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 24 Sep 2007 15:10:34 +0200 User-Agent: KMail/1.9.7 References: <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com> <20070924143540.A28769@wojtek.tensor.gdynia.pl> <18167.45708.53032.162026@jerusalem.litteratus.org> In-Reply-To: <18167.45708.53032.162026@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709241510.35759.fbsd.questions@rachie.is-a-geek.net> Subject: Re: The best way to keep the system clean? 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: Mon, 24 Sep 2007 13:10:41 -0000 On Monday 24 September 2007 14:50:20 Robert Huff wrote: > Wojciech Puchar writes: > > > My problem, many times I install some software from ports, it install > > > the dependency software. Then after some time, I find that software > > > isn't what I want, and deinstall it. At this point, the dependency > > > software isn't necessary as well. Is there a way to clean them > > > automatically, like the apt-get autoremove in the Ubuntu system. > > > > possibly there are better methods but i do: > > Also: ports-mgt/pkg_cutleaves. > Personally, I distrust anything involving the term > "autoatically remove", doubly so when it involves recursion. All it > takes is one bug in the script, or fumble-fingers at the keyboard, > and you're looking at major re-installation. This is a job for the > Mk. I eyeball. pkg_cutleaves works interactively by default and can be aborted at any time. I'm of the same mindset, still pkg_cutleaves does it's job very well: - Reads config file of leaves to keep, so you don't have to answer the same questions on each run - Builds a list of current leaves, asks you whether to deinstall and *then* deinstalls those leaves (not between each answer - fumble finger protection!) - Gives the option re-evaluate leaves after a run, so you can optionally remove dependencies of deinstalled packages (recursive, yet not recursive). I typically run it as pkg_cutleaves -xg, so that new "Kept" packages are added to the config file automatically. -- Mel