Date: Wed, 18 Oct 2023 14:17:05 +0100 From: Steve O'Hara-Smith <steve@sohara.org> To: "Edward Sanford Sutton, III" <mirror176@hotmail.com> Cc: questions@freebsd.org Subject: Re: How to reinstall *ALL* pkgs Message-ID: <20231018141705.20e86e0813b98f15c385b2db@sohara.org> In-Reply-To: <CO1PR11MB477041A6E3B7CB911B5F157BE6D5A@CO1PR11MB4770.namprd11.prod.outlook.com> References: <CAGBxaX=utxjVf7w-2=iSrhoDvy%2BrC1PCVPY8RSWu8CzXOf70ng@mail.gmail.com> <CAMtcK2o1Hxx7DxP-4fqWdw3MQrFq5A7W-MO4mcL3PR0ES6qQXg@mail.gmail.com> <39b235c6-a8f1-4383-b491-24b32eed2b7d@app.fastmail.com> <CO1PR11MB4770142E56B83469875DD541E6D6A@CO1PR11MB4770.namprd11.prod.outlook.com> <20231018061047.d3a3111c4104ac9bc666999d@sohara.org> <CO1PR11MB477041A6E3B7CB911B5F157BE6D5A@CO1PR11MB4770.namprd11.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 18 Oct 2023 05:20:06 -0700 "Edward Sanford Sutton, III" <mirror176@hotmail.com> wrote: > On 10/17/23 22:10, Steve O'Hara-Smith wrote: > > On Tue, 17 Oct 2023 16:11:46 -0700 > > "Edward Sanford Sutton, III" <mirror176@hotmail.com> wrote: > > > >> `pkg query -e '%a = 0' %o` is the more complete "I installed this" > > To correct myself, `pkg prime-origins` is the same as `pkg query -e '%a > = 0' %o` on my system with v1.20.8; `pkg alias` reveals that; could have > sworn there was a difference somewhere. prime-origins seems to return > manually installed nonleaf packages The %a = 0 clause means that it returns all packages that are not marked as auto installed so yes it will indeed return manually installed non-leaf packages. > > I usually use pkg leaf which expands to > > > > pkg query -e '%#r == 0' '%n-%v' > > The %#r == 0 clause means that it will return all packages that nothing depends on. > `pkg leaf` includes package version #s and pkg doesn't check for True - I usually wind up removing the version bit which is a PITA. pkg-prime-origins also includes the category. -- Steve O'Hara-Smith Odds and Ends at http://www.sohara.org/ Host: Beautiful Theory meet Inconvenient Fact Obit: Beautiful Theory died today of factual inconsistency
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20231018141705.20e86e0813b98f15c385b2db>