From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 12:52:37 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 A99F316A474 for ; Mon, 24 Sep 2007 12:52:37 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id E22AE13C516 for ; Mon, 24 Sep 2007 12:52:36 +0000 (UTC) (envelope-from karol.kwiat@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so923321ugf for ; Mon, 24 Sep 2007 05:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; bh=i/h9l74zs2PgOAdCYUW3VMvH3GEj1REOLy7oJKxM6p4=; b=OXX7B7VwOz1t+NZ1YFkfEXQRCxP/341T/i6f0n+im/qE1UHeAvrifWUX5WsEx6T7sTj/DOreqWsQ2OYSPHrG2DsPnRSJQggDTddedZ0NKO7XYSn3i6IuUP/MNMShTmEytwGc4wgKkHKRkvvQZ5X16hRzeudbrGTgs1OsIWJIBo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=tv+UZo6sni95B7ipAXh3mhiqQz3Z08JFvrwaQ6rksWXoRkVsgqCRxhXMrhFv0XV++EpzXgRKsWYTlJjf39OCJ4G9tVVmTHlirk9y8tNCsuV8SUeu6WyTO7GD22bDrqzJqH8H+eSgZ10Odb+US06Y0LFo72cuh0LsMGZUkNXkG04= Received: by 10.67.19.9 with SMTP id w9mr5864943ugi.1190638355317; Mon, 24 Sep 2007 05:52:35 -0700 (PDT) Received: from persephone.orchid.homeunix.org ( [84.10.173.180]) by mx.google.com with ESMTPS id 13sm3020250ugb.2007.09.24.05.52.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 Sep 2007 05:52:34 -0700 (PDT) Message-ID: <46F7B303.3000507@gmail.com> Date: Mon, 24 Sep 2007 14:52:19 +0200 From: Karol Kwiatkowski User-Agent: Thunderbird 2.0.0.6 (X11/20070803) MIME-Version: 1.0 To: ronggui References: <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com> In-Reply-To: <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com> X-Enigmail-Version: 0.95.2 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig6A81D909D8E266E887FAAD61" 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 Reply-To: karol.kwiat@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2007 12:52:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6A81D909D8E266E887FAAD61 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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. I don't know what apt-get autoremove does on Ubuntu but have you checked pkg_deinstall(1) and it's man page? Right from there: DESCRIPTION The pkg_deinstall command is a wrapper of pkg_delete(1) used to deinstall packages, which understands wildcards and is capable of *recursing through dependencies*. (emphasis mine) Have a look at -r and/or -R options. HTH, Karol --=20 Karol Kwiatkowski OpenPGP 0x06E09309 --------------enig6A81D909D8E266E887FAAD61 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRvezCghgT0HIecD5AQhNsQf/Ru6jiaqix9L7WwKl6Uaui+Hu7CuqaG/e akJOwqXLIQB0qxut/PXi1ivLjCuOCyMKNpF01oNytHC0glJ0DtmQVopClGIXhNPE /7tsW2yaFqE1OtHTxnO3G+rgiy2cKIbSdV2wPqNNUtwVyK6eqJiJtX6bwQXHZPHz ysIZ8vk+P+d3ERDTKfXtvTXHyW6OWDUxo1/90bPRCmvgjrxZiyCWFoz66qi5fEtu Nk5LuHE/qb8XWHFtfLhz5WPywMT7cze3EWYBJxpNNWINleeCzxGaSwzHYgZ8SUpm mpM2UkBX2qzGqbejzhpf5wu0cdYLJZVEZG1ZgEFcVLGDzo3O2xRAYA== =D5cT -----END PGP SIGNATURE----- --------------enig6A81D909D8E266E887FAAD61--