Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2023 05:20:06 -0700
From:      "Edward Sanford Sutton, III" <mirror176@hotmail.com>
To:        Steve O'Hara-Smith <steve@sohara.org>
Cc:        questions@freebsd.org
Subject:   Re: How to reinstall *ALL* pkgs
Message-ID:  <CO1PR11MB477041A6E3B7CB911B5F157BE6D5A@CO1PR11MB4770.namprd11.prod.outlook.com>
In-Reply-To: <20231018061047.d3a3111c4104ac9bc666999d@sohara.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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

> 
> 	I usually use pkg leaf which expands to
> 
> pkg query -e '%#r == 0' '%n-%v'
> 

   `pkg leaf` includes package version #s and pkg doesn't check for 
newer version numbers when given older version numbers on an install 
command. `pkg prime-origins` giving a path keeps away any ports with the 
same folder name in different category folders (though those should have 
a different final package name) but does have a side effect of needing 
an update if anything moves. Manually installed packages that currently 
have dependencies are not listed by `pkg leaf`. How many packages are 
out of date vs moved but correct version at time of update changes how 
many edits are necessary.
   As the original goal was to remove+reinstall all packages to install 
the up to date and functioning copies, either case needs to be 
considered as pkg cannot auto handle either when it is two separate 
steps of remove+reinstall.



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