pkg replacement for pkg_sort?

Jeremy Messenger mezz.freebsd at gmail.com
Sat Mar 30 22:16:52 UTC 2013


On Sat, Mar 30, 2013 at 2:43 PM, Chris Rees <utisoft at gmail.com> wrote:
> On 30 Mar 2013 14:53, "Robert Huff" <roberthuff at rcn.com> wrote:
>>
>>
>> Matthew Seaman writes:
>> >  On 30/03/2013 13:17, Robert Huff wrote:
>> >
>> >  >    Am I too much of a zombie this morning, or is there nothing in
>> >  > the man page about how to do this?
>> >
>> >  That's not functionality provided by pkgng at the moment,
>> >  although pkgng certainly has all the necessary data in repository
>> >  catalogues etc. to be able to sort a list of package origins with
>> >  all dependencies occurring before what requires them.  No one has
>> >  implemented that yet.
>> >
>> >  However, pkg_sort(1) is part of portupgrade, and portupgrade
>> >  should be fully pkgng aware nowadays.  Did you try just using
>> >  pkg_sort?
>>
>>         I did and do.
>>         I'm trying to move to a single tool for this set of tasks, and
>> pkg_sort is one of the (very) few things I haven't been able to
>> replace.  Unfortunately, that functionality is essential to several
>> scripts ....
>>         The other irreplaceable I can think of is "portsclean",
>> particularly the C, D, and L options.
>
> Portsclean is easy for wrkdirs;
>
> echo /usr/ports/*/*/work |xargs rm -r
>
> Or set WRKDIRPREFIX somewhere else and rm -r that.

In my /etc/csh.cshrc, I have this:

alias rmwork    "rm -rf /usr/ports/*/*/work"


> Portmaster removes old distfiles and packages iirc.
>
> Chris
>
>> >  If you'ld like something to be changed about either portupgrade
>> >  or pkgng in respect to this, then please open an issue --
>> >
>> >    https://github.com/pkgtools/pkgtools/issues
>> >    https://github.com/pkgng/pkgng/issues
>>
>>         Depends on how lazy I'm feeling at the moment.  :-)
>>
>>
>>
>>                                 Robert Huff
>>
>> _______________________________________________
>> freebsd-ports at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>>
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"



-- 
mezz.freebsd at gmail.com - mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org


More information about the freebsd-ports mailing list