From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 13:14:01 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 EBCA516A469 for ; Mon, 24 Sep 2007 13:14:01 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from mx4.netclusive.de (mx4.netclusive.de [89.110.132.136]) by mx1.freebsd.org (Postfix) with ESMTP id 4767613C4C6 for ; Mon, 24 Sep 2007 13:14:01 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from nermal.rz1.convenimus.net (Fdcde.f.ppp-pool.de [195.4.220.222]) (Authenticated sender: ncf1534p2) by mx4.netclusive.de (Postfix) with ESMTP id DDF375E0167 for ; Mon, 24 Sep 2007 15:13:59 +0200 (CEST) Received: by nermal.rz1.convenimus.net (Postfix, from userid 8) id 48BE61521D; Mon, 24 Sep 2007 15:10:46 +0200 (CEST) To: freebsd-questions@freebsd.org Path: not-for-mail From: Christian Baer Newsgroups: gmane.os.freebsd.questions Date: Mon, 24 Sep 2007 15:10:46 +0200 (CEST) Organization: Convenimus Projekt Lines: 28 Message-ID: References: <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com> NNTP-Posting-Host: sunny.rz1.convenimus.net X-Trace: nermal.rz1.convenimus.net 1190639446 88773 192.168.100.5 (24 Sep 2007 13:10:46 GMT) X-Complaints-To: abuse@convenimus.net NNTP-Posting-Date: Mon, 24 Sep 2007 13:10:46 +0000 (UTC) User-Agent: slrn/0.9.8.1 (FreeBSD/6.2-RELEASE-p7 (sparc64)) 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:14:02 -0000 On Mon, 24 Sep 2007 20:17:42 +0800 ronggui wrote: > 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. pkg_cutleaves was mentioned here a few times. I just want to tell you, why I think it's the best idea: Automatically deinstalling stuff can leave a mess. Sometimes you deinstall too much, because one of the other ports your application depended on is also needed by others. Think about what could happen if you deinstalled gtk. pkg_cutleaves lets you go through the list of installed stuff and asks if you wish to remove each item. All packages shown are leaves, which means they are not required by any other program. After deinstalling a few leaves, you will get new leaves which you can deinstall. > And the related general question is, what's the best way to keep my > system clean? Thanks. Define "clean". Regards Chris