From nobody Wed Oct 18 12:20:06 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S9VL85D9Mz4wxrk for ; Wed, 18 Oct 2023 12:20:32 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2025.outbound.protection.outlook.com [40.92.41.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S9VL81Gmsz4YM6 for ; Wed, 18 Oct 2023 12:20:32 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fyd49aUl3faJjJLTwt843gFZ+71dwzQTK83o57DBNxmfLd8iducAsHv9QxkmB/uOv9mT6xcB9TnCfeHKgnoVa654qa+ejp1mw+YrMpQRkz2LEOJnjiNaJpjLfZOu6LVxrGxIL9w2YhF56ItfdNxhVG6YnF2h6cWY+AToWYQqwOnV/VTLBycf7uBcJHJ8yrnWr4HqK3vMcf/kM7OgKhDwnxuMNQFd2QrMxjqnHB9VP1VIWAhve+8AFDBzoQq0ZrVXonX+P3rrYAaBF+qIKY7E5uj4a16fa/MXhdyOeuD3XwjzUJcGENAN5S2uZkFnQMTzKz0TCDOvRFdHEghsYwOFZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FyqQEhad+pvq9NLd/xf4H5+dLYajsOjZAWnu3QSZfP4=; b=iqdnM7/F022XFAR9slAGwwfGcp+3T6lVnW9iSAosYgBA9VYDGvA2ugKXlQeihT9KKh8LZymyAxIbLYFWrIoXx+XjCOX87G1PQ1VcihkaItVVr2mxZQqockct0GCKCfFEKBLepXc+PVomxbpFmgxx2wmcQrLNfvARCvpCSCvCNzE9I2sP41bJZ/LaIinsNiRG1W+9uHmvaLWpYyD4pA1prycgzqXTWgJvv+HYIjfN3LFgx3dKOKCpDg8DAEwYKEtFzst+aCDwwE4mrnmevOdJWtFLSlUpdV/+euOj+xqKf/9472wwaGevAW9Go8miE3erTEGc7/o7P3hzDGYAQpch7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FyqQEhad+pvq9NLd/xf4H5+dLYajsOjZAWnu3QSZfP4=; b=WgUrJsrYERbeq0/s8COXg7oOzD9xTpqMt7nywb+JUyvs1OpHEbavrWCl95YXLnoMM2P1SAqb1M3+m5xSK26GRhfyajofY32jlXdyV2L5kSIqoi4s1t08KNWap9p5nD2zZWvPHL/hlZPf7rNLZjo5x+w8VED09Aj4WSof3tXd6o6Qa+PufKcasAHquJsCxBK2NAhjb/LMUumpFJWBqTpgRa1D7v4WWRmXcKA0JYULiNqjzJGQSTtt5SQiIUqHY4vH38VO/Y1X5hI4986XC15QUyJn8QiFJYPrsaAOxDIvkkFmnmCKlKeqUkrTHVink+e1bIthOZBt14RnGZ/gJawJpA== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by DM4PR11MB5454.namprd11.prod.outlook.com (2603:10b6:5:399::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Wed, 18 Oct 2023 12:20:30 +0000 Received: from CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::a542:a24f:4156:3a05]) by CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::a542:a24f:4156:3a05%7]) with mapi id 15.20.6886.034; Wed, 18 Oct 2023 12:20:30 +0000 Message-ID: Date: Wed, 18 Oct 2023 05:20:06 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: How to reinstall *ALL* pkgs Content-Language: en-US To: Steve O'Hara-Smith Cc: questions@freebsd.org References: <39b235c6-a8f1-4383-b491-24b32eed2b7d@app.fastmail.com> <20231018061047.d3a3111c4104ac9bc666999d@sohara.org> From: "Edward Sanford Sutton, III" In-Reply-To: <20231018061047.d3a3111c4104ac9bc666999d@sohara.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [HWBvKKzyX4oIl2osw/sRUjMr84inPo/x] X-ClientProxiedBy: BLAPR03CA0120.namprd03.prod.outlook.com (2603:10b6:208:32a::35) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: <9a5d8beb-3db9-7749-6cda-5a706bee8255@hotmail.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4770:EE_|DM4PR11MB5454:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c41e271-df33-4206-85e5-08dbcfd49281 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rd5BMD5tGZWTAnBGA/ja58DNmUh3vngwLF3H5BlXpAYh43JqNrt7PvYAIcwYjh5Lttj5endtVFr0vhpaUnAGg4Ew+0gIITwhDt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?N1Nlc1V5MGZBS0k2cSs0a254Q1ZNZFRBT1EySlQrRHgrK0Y2MEdOUExhcmll?= =?utf-8?B?bDZqY2g1K0lyZ05jMjRnTkl5Sis0cE52Wjd1Mm9XTldVM01ndG44MVFOdklX?= =?utf-8?B?bDl4blNMVzZUM2ZqTjBhdHNKVUUwVFBBeWxpV0ZadW4rRUdieHRHbkR2a0xz?= =?utf-8?B?OGdqbFV6NGJrNi84VkhXcXh1bW5KczBTNWNnWG9iQzFkK0NQUnFKWCtQM2o3?= =?utf-8?B?YmZ3Qk5WVDBGNVlpQktKWk1weUtDeFlweDJGdVlPbG52Nmpuc2dFVURLZW52?= =?utf-8?Q?qqL8Htbvc2Ci5J/tbqHt1CCgRDjaaz9wI9nIzbZJvUlk=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 5c41e271-df33-4206-85e5-08dbcfd49281 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 12:20:10.6782 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5454 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US] X-Rspamd-Queue-Id: 4S9VL81Gmsz4YM6 On 10/17/23 22:10, Steve O'Hara-Smith wrote: > On Tue, 17 Oct 2023 16:11:46 -0700 > "Edward Sanford Sutton, III" 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.