From nobody Tue Oct 17 22:49:04 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 4S98L06mQ6z4x7q8 for ; Tue, 17 Oct 2023 22:49:12 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11olkn2010.outbound.protection.outlook.com [40.92.20.10]) (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 4S98L00TKyz3gMM for ; Tue, 17 Oct 2023 22:49:12 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=GFrx5l5l; spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 40.92.20.10 as permitted sender) smtp.mailfrom=mirror176@hotmail.com; dmarc=pass (policy=none) header.from=hotmail.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IF4LtGc68bcKqlOdAgvbUYj78//pLGFCxhxo6Ycxlj0qgDaDBA+ZzMhKNyLNSMg6tGfRFMVoAlSqXmqdHicp24PSW1mfrO0qHdd5np507Ys5vawxXveSQaAQz4egeMaIyjSKs6AktFEvtsxnhPExkpvvcHZvxKFfEJ5MMxpqBr3AV9MKQsl/6QPjfF5pBfB9uCHOivnqfSmAatVptVfWPxqCmRnlVVkPEvOIVIzBYJYwbwoGeYbcaCbOuiwSIEr13d8PUKpcTEYe5Bb/vgmn8RjAH01FAGkWrTGghxPFYY7mm/A1Vi2pb5A8F1u32Aui6yiRZE2EXyFmF/8NUUAhwg== 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=o+vFofJsyHjE2b/upIPpUnahEgofLaTeNTcyNzZnaFA=; b=mvanARhavG6FtRxm5rL0Neygr3E5ioYmp0T9tEQsIqghJPjXgxZnXfY9fVGVnJodeNFTOKsk+WH7SDEdoBaQLtjRBZvK9tjrIkmINXYpgyFM3WBo0quWUbUqqYbjwy/A5EobWJar/hu2PfxK8BZ9USTLft4z3uLDd7ha7E6K18ki7NWm/va8ts25y4JbOh7XkP2CBtkzB7obGo+A9EQ97Lne/YqjI3Zi/1TcBDvxyLpoPaOMy6iBYrXyWP1oclBZWfPJacTTnAiJ+EpAAJiqWBtVysaNUItFWVH4SfMG4tYR9XMbear3S8kBiJDTs+JMC5KQu3Hq/4r5u4D/vpB0Sg== 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=o+vFofJsyHjE2b/upIPpUnahEgofLaTeNTcyNzZnaFA=; b=GFrx5l5l3Z3AiP61BBIdtZ+s6pvXKfhucBvRcRVJYJt62KXtRB4ai7jXlwA/0JAXrmUiGfb060mCYui0ydCrW6K2ac5jcK3UxO3E6WE9yOXd9/07M/7paCyXuRPusdmWtynYSl1Ua083AVrze4F2Hb8hHVUkt5YZGVIauXJmkppGv1zYRC+wxh7SHYnOkMX+O7U1bAJDIgC8qfcDBJkTsrCZujORnnWE38evSW6PpawQNh187tsCObSuiP9NXJRDw6F3F+BHBoVjRgKgM4aykxSBJTeki9qkY1cKwwpiWDFqDbiLhEx6uUF71TbI6KpuRwGfgksn80m8Td+a5gK0UA== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by CYYPR11MB8305.namprd11.prod.outlook.com (2603:10b6:930:c1::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.35; Tue, 17 Oct 2023 22:49:10 +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; Tue, 17 Oct 2023 22:49:10 +0000 Message-ID: Date: Tue, 17 Oct 2023 15:49:04 -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: questions@freebsd.org References: From: "Edward Sanford Sutton, III" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [vt89lg5LswiWh/tP10LOLSkY6KrJ4R/N] X-ClientProxiedBy: BL1PR13CA0029.namprd13.prod.outlook.com (2603:10b6:208:256::34) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: <4977d300-7b7c-3558-8741-25fe0e359b3b@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_|CYYPR11MB8305:EE_ X-MS-Office365-Filtering-Correlation-Id: dda84e60-fffb-496e-0397-08dbcf634677 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nTZdWp9VED1bdb1wq2wkUMJMokbJiFj1h/yrp5h5MDRo82pTa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?= =?utf-8?B?c2NSb3lHVExreVd0ckYvYW0xbjJWMnRNdW5HZ2NMM3FzRitRSU9nK09vd05T?= =?utf-8?B?K1FUTXpBT3pJS1dGN0NEYUV6bEVtODdnbDRJVUFjRnVJY2EzazZONXZRV3dL?= =?utf-8?B?MkZjSzFDVW53ajBvSStVSlAvd1Byakhvd1VZWmVpb1NDV1k0eVBvSnE2dUp4?= =?utf-8?B?TmtCU212WHVsSTAvN0d6UWhBMHNYMnhuWmlhRFZsaVhVUXpNM2Rid1h5N2ZY?= =?utf-8?B?WkkzaVdiUTUzZGFnSFJydk5QdjJncnoxTW55UDloQnpCZmxkaDVEQ1NWWUtT?= =?utf-8?B?TGtPSDlBNFpSNnl6ZHBzeEhNWmJLQTNhd1R0ZTVJa3c5L0t6YkJJeGQ4L09V?= =?utf-8?Q?jmUWE1P/PunLRTbCowvT+ZYwYQjlyYFq8/Pxdq6u26OQ=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: dda84e60-fffb-496e-0397-08dbcf634677 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 22:49:10.0104 (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: CYYPR11MB8305 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.32 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.82)[-0.822]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/16]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_IN_DNSWL_NONE(0.00)[40.92.20.10:from]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.20.10:from]; DKIM_TRACE(0.00)[hotmail.com:+]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4S98L00TKyz3gMM On 10/16/23 21:14, paul beard wrote: > I have done something like this… > ls /var/db/pkg/ | sed -r 's/(.*)-[0-9]/\1\ /g' | cut -f1 -d" " > > and pass that to pkg or to a file to clean it up (the sqlite databases are > in there and don't need installing via pkg). The sqlite databases are where the packages are listed for current FreeBSD installations; perhaps you still have the old entries predating pkgng (wasn't it pkg_* commands back then?) As a result, I would not trust those entries outside the database files to be up to date. I recommend keeping a list of packages you installed separately. Manually requesting all packages be reinstalled should leave all of them marked with their autoremove flag set to 0; `pkg autoremove` will see them as all intentionally installed and weren't just brought in to be a dependency so will always be kept around. That can be changed with `pkg set -A 0` (or 1 if you want it to think it was just brought in as a dependency you otherwise don't want to keep if unneeded). If not polluted by "remove and reinstall all packages by list of currently installed packages" then you can create a list of packages you installed with `pkg query -e '%a = 0' %o`. See pkg(8) and its pkg-* related manpages it has as 'see also' have examples to lead you down that route. If you haven't maintained that list or just want a list of packages that have nothing depending on them try `pkg prime-origins > /root/prime-origins` then consider if there are any 'missing' programs you want to guarantee are not removed if dependency branching changes in the future; you can manually add them to this list. The equivalent list but including all packages is `pkg origin` (why the plurality change on the commands?). > I know pkg has all kind of flags and syntax but I can never keep track of > it all. > > On Mon, Oct 16, 2023 at 8:53 PM Aryeh Friedman > wrote: > >> I tried pkg upgrade -f and got the following: >> >> root@neomarx:~ # pkg upgrade -f >> Updating FreeBSD repository catalogue... >> FreeBSD repository is up to date. >> All repositories are up to date. >> Checking for upgrades (1475 candidates): 100% >> Processing candidates (1475 candidates): 100% >> Checking integrity...Child process pid=1821 terminated abnormally: Killed >> >> How do I proceed from here? There was a post on the forums from 2018 recommending `pkg-static install -f pkg;pkg upgrade -f` and the user said they also had to increase their swap space to succeed. Depending on the package and the parameters it is created with, some do take a lot of RAM to process; I mostly made my own from poudriere and usually maximized compression figuring with 32GB RAM that xz high memory use would be fine. If still not working and in case no one has a better suggestion, my plan would have been to try creating a list of packages in case you don't have it already, remove all packages, and reinstall all packages. If pkg commands are failing, I don't know if uninstall could be performed cleanly without better understanding the pkg database format to manually read/confirm steps are happening. Another thing that could be worthwhile is trying to see if failures can be spotted with `pkg check -an` with additional flags -dsv may help narrow down some problems. >> -- >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org >> >> >