Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2012 19:03:13 +0300
From:      Vitaly Magerya <vmagerya@gmail.com>
To:        Glen Barber <gjb@freebsd.org>
Cc:        Marin Atanasov Nikolov <dnaeon@gmail.com>, current@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: Plugins support in pkgng
Message-ID:  <CAL409Ky9BNPFKg8h2xpswVrFdUjxWynq0DhAS2TzrQyiDx9swg@mail.gmail.com>
In-Reply-To: <20120831153659.GD1523@glenbarber.us>
References:  <CAJ-UWtTYL3y0pqfpSWHzYMNjuk2UB2DFyU_Fg8-_%2Bp8eMU_=Fw@mail.gmail.com> <CAL409KyNhF%2BP-CB2yCk=0OcVEVYxLHJ473vpK0A5xgz7SFCnkA@mail.gmail.com> <20120831153659.GD1523@glenbarber.us>

next in thread | previous in thread | raw e-mail | index | archive | help
Glen Barber <gjb@freebsd.org> wrote:
>> How about the ability to add new commands to "pkg"?
>> For example something like "pkg cutleaves" via plugins would be cool.
>
> I think 'pkg autoremove' already does this.

Does autoremove show you all the leaves and ask which ones you want
removed? I honestly don't know (and can't test at the moment); I
assumed it only removed the ones with "auto" flag on. In any case,
what I actually want is a pkg_cleanup alternative (i.e. cutleaves with
a dialog(1)-like interface).

There are other utilities that could benefit from being a plugin too.
For example "suggest" plugin could use hooks on the build server to
construct a database of "binary name->package" mapping, and add "pkg
suggest" command on the client to query that database (e.g. "pkg
suggest ogg123" would suggest you to install "audio/vorbis-tools",
which is an idea that has been floating around).



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