Macports basics
Eric Gallager
egall at gwmail.gwu.edu
Thu Mar 27 11:31:14 PDT 2014
I personally do not really use the "leaves" functionality that much,
but if you decide that you do want to go that route, there is a
"port_cutleaves" port that you can install (with `sudo port install
port_cutleaves`) that can be helpful for dealing with leaves. It is a
relatively simple script that actually comes from the "contrib" folder
in the MacPorts repo:
https://trac.macports.org/browser/contrib/port_cutleaves/port_cutleaves.in
On 3/27/14, Eric A. Borisch <eborisch at macports.org> wrote:
> On Thu, Mar 27, 2014 at 5:15 AM, Gio Bacareza <gbacareza at gmail.com> wrote:
>
>> 4. If I decide to not attempt the port installation of Octave and try
>> other means, how do I clean up?
>>
>
> The 'leaves' pseudo-portname for "installed ports that are unrequested and
> have no dependents" is useful for cleanup after something like this. (If
> you're not planning to try re-installing.)
>
> This can be combined with port psuedo-portnames for some very useful
> combinations:
> port echo leaves and rdepof:octave
> sudo port uninstall leaves and rdepof:octave
>
> Note some things (like automake / autoconf) are required by many ports
> during build phases, but become leaves as they are not required after the
> install completes. You can 'request' these ports (so they are no longer
> leaves) after the fact with "sudo port [un]setrequested <portname>" ... Be
> sure to look at the list you are about to uninstall to make sure you really
> don't want any of the items. (Or just deactivate them for now if you're not
> low on disk space -- they can be reactivated very quickly.)
>
> See "man port" for more information.
>
> - Eric
>
More information about the macports-users
mailing list