Re: Plugins support in pkgng

看板FB_current作者時間13年前 (2012/09/08 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
On 8/31/2012 11:03 AM, Vitaly Magerya wrote: > 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). No, because it already knows which you installed and which were pulled in as dependencies. There's a recent thread on ports@ regarding pkg2ng and marking your imported packages as automatic or not. See "Script to set/unset "automatic" status in PKGNG database" > > 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). Bryan _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1GIjyinm (FB_current)
文章代碼(AID): #1GIjyinm (FB_current)