Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2007 14:52:19 +0200
From:      Karol Kwiatkowski <karol.kwiat@gmail.com>
To:        ronggui <ronggui.huang@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: The best way to keep the system clean?
Message-ID:  <46F7B303.3000507@gmail.com>
In-Reply-To: <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com>
References:  <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

-- 
Karol Kwiatkowski   <karol.kwiat at gmail dot com>
OpenPGP 0x06E09309


[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46F7B303.3000507>