From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 12:37:14 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 BADF016A418 for ; Mon, 24 Sep 2007 12:37:14 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 148DC13C461 for ; Mon, 24 Sep 2007 12:37:13 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id l8OCb9f9028810; Mon, 24 Sep 2007 14:37:09 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id l8OCb6dB028807; Mon, 24 Sep 2007 14:37:09 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 24 Sep 2007 14:37:06 +0200 (CEST) From: Wojciech Puchar To: ronggui In-Reply-To: <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com> Message-ID: <20070924143540.A28769@wojtek.tensor.gdynia.pl> References: <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org 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 12:37:14 -0000 > 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: pkg_info|cut -f 1 -d " " >package.list edit package.list and remove from that list ONLY things you do need. do pkg_delete `cat package.list` and pkg_delete will skip everything that is needed for packages you removed from list, and will delete everything else.