From owner-freebsd-ruby@FreeBSD.ORG Tue Sep 21 06:09:13 2010 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 043F5106564A for ; Tue, 21 Sep 2010 06:09:13 +0000 (UTC) (envelope-from yorik.sar@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id B11AB8FC19 for ; Tue, 21 Sep 2010 06:09:12 +0000 (UTC) Received: by qwg5 with SMTP id 5so4561408qwg.13 for ; Mon, 20 Sep 2010 23:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=Ezh3ROhL0l0OeUnEh+qGIjxsy+HFPaWX9ZY0SsQAOeE=; b=axzxF8iMsdiSz8V9h1hTvPgIyni6/i2F4u2x/rmiplhTTtgA0Gt2PMEPfqmRirDomB 4eiJgzYXsgGLMrwtQfm5b064+Y0Rt2jNag8LVmT30ueo7KPYDxACFqzz0Y77i61DeTD2 oWCLtE9C/VD6COA19HJ+TwVNsPmXwAMVGz5Mo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=IIipSp52QmFhV9T8yXRUoN0zo6Psl1ahIp4YjCOBkJhTVnhB5JCyFN31anieJzJWqx h0Eb/HLtMKn4E/i8595IIyJCmgMLp2MJVqYvkz1bD6mNWPABfywDBNHnRjE4NKpwuJis xx3XxG6UNJPhQnn6k7yMMOvOCwYYF6bni6KKI= Received: by 10.229.191.147 with SMTP id dm19mr6847194qcb.33.1285048041155; Mon, 20 Sep 2010 22:47:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.18.7 with HTTP; Mon, 20 Sep 2010 22:47:01 -0700 (PDT) From: Yuriy Taraday Date: Tue, 21 Sep 2010 09:47:01 +0400 Message-ID: To: ruby@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: [pkgtools] Removing unused installed packages. X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2010 06:09:13 -0000 Good day. Time to time I use utility pkg-orphan to remove unused software from my system. It looks into /var/db/pkg tree, asks on every package without +REQUIRED_BY file wether I need it or not, keeps list of needed packages and calls pkg_delete on all unused ones. The other way to achieve clean system (aptitude way) is to keep flag on each installed package whether it has been installed by user request or because it is required by some other package. This way we can delete all unused packages when deleting software that needs them. Are there any plans on implementing one of this methods in pkgtools world? I think, it should be useful. Kind regards, Yuriy.