Re: Script to set/unset "automatic" status in PKGNG database

看板FB_current作者時間13年前 (2012/09/08 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/10 (看更多)
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig88112785C4A1A92E001C5360 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 30/08/2012 22:44, John Nielsen wrote: > After dialog(1) exits the script has a list of packages to mark as > automatic. Is there a non-SQL way to efficiently get the inverse? > I.e. the set { all_packages - new_automatic_package_list } ? Use pkg query - it is really quite powerful. This shows all non-autoremove packages as name-version: pkg query -e '%a =3D=3D 0' '%n-%v' and this shows the port origin for all autoremove packages: pkg query -e '%a =3D=3D 1' '%o' Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig88112785C4A1A92E001C5360 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBAUiAACgkQ8Mjk52CukIwptwCaAjv2e/019kElWA371luGgykg EHoAnjNkATmu883Y1fF6jfwlbgecMbO4 =Pigw -----END PGP SIGNATURE----- --------------enig88112785C4A1A92E001C5360--
文章代碼(AID): #1GIjyh8R (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 10 篇):
文章代碼(AID): #1GIjyh8R (FB_current)