From nobody Tue Oct 17 16:01:48 2023 X-Original-To: freebsd-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 4S8zJQ2hVPz4xgyh for ; Tue, 17 Oct 2023 16:02:14 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4S8zJQ0gjYz4JW2 for ; Tue, 17 Oct 2023 16:02:13 +0000 (UTC) (envelope-from dch@skunkwerks.at) Authentication-Results: mx1.freebsd.org; none Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D509232009C5; Tue, 17 Oct 2023 12:02:11 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute2.internal (MEProxy); Tue, 17 Oct 2023 12:02:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1697558531; x=1697644931; bh=De+g8TaeZnQhuVUxD7cqznO07 DhQDTODQBIRfIkiAzI=; b=N1aB5Gw88sU++BhStNb+MblgiIYd1cEtvJWe/Z3j3 g5oveXFS0KEvRbn+JDVGTOjqKSz03X22SsXfazpAUYNcj3DByz3CUPUSx1AWk1Xu R6uWFfa0ceMsHTcbz0OaUpNjx0RXidW0AoVxaTTwtZ9EvWiOmihxe5fini/kuImp +4l3qF41SrmvMvQz0bMcg3Hgnv257TI3sUVW5ICDMuqvXeWbWo7u00+AK3maskBT pY4xzmVAa35OC1Rum8qenQ+JWRbE3Flmpy6dw2yfmyd2t2SVy9wBp5v1DicX2XcY XmYuZxj4jXw9vX9Fg5P6VeSrcBsnCL/FuxJEUFXILAmww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1697558531; x=1697644931; bh=De+g8TaeZnQhuVUxD7cqznO07DhQDTODQBI RfIkiAzI=; b=MNNYhdgiW/cdWNrNZ+gIgdgtSussP+NDnPkKnwVwtFOUKLZxxjK Fl/TlM3tPa6NBMyiJ9fs5zKrbP8I335H4QZVHeucdMVuEX33nv9Rgkvyn7So1RxI G/N2st/5iY45XSaqHnZAfC4szmP7KaIQGRtmQU7iOy9CyGMy3ouZyvWLPH57SWxu ulTnRPnO4hwSaQrOO1jBhtELqTQUAbVC/DeeMz2Hb+lLvnZLjmuR+mOBiqu5YPXH e8wXBVV9fr4IrA7kJOP1zjcDFUvFBFi9EcWQzdy6C3lFGIvGo0YcuU7aGDTxFdex 09Ei9YUdTIO8jSHdeYI4Raf55Pzz6iIikrQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjedvgdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedfffgr vhgvucevohhtthhlvghhuhgsvghrfdcuoegutghhsehskhhunhhkfigvrhhkshdrrghtqe enucggtffrrghtthgvrhhnpeekgfduhefgueekieetieelvdeikefggfduteeugefgteeu tdffheeiveejkefhjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegutghhsehskhhunhhkfigvrhhkshdrrght X-ME-Proxy: Feedback-ID: ic0e84090:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 868C336A0077; Tue, 17 Oct 2023 12:02:10 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85 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 Message-Id: <39b235c6-a8f1-4383-b491-24b32eed2b7d@app.fastmail.com> In-Reply-To: References: Date: Tue, 17 Oct 2023 16:01:48 +0000 From: "Dave Cottlehuber" To: "Paul Beard" , "Aryeh Friedman" Cc: freebsd-questions Subject: Re: How to reinstall *ALL* pkgs Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable 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:29838, ipnet:64.147.123.0/24, country:US]; TAGGED_RCPT(0.00)[] X-Rspamd-Queue-Id: 4S8zJQ0gjYz4JW2 On Tue, 17 Oct 2023, at 04:14, paul beard wrote: > I have done something like this=E2=80=A6 > ls /var/db/pkg/ | sed -r 's/(.*)-[0-9]/\1\ /g' | cut -f1 -d" " =20 > > and pass that to pkg or to a file to clean it up (the sqlite databases=20 > are in there and don't need installing via pkg).=20 I use this to track only the leaf packages, what's explicitly been insta= lled and the others will be pulled in automatically. NB make sure you're in the root /bin/sh & a console, not an (x)term as this will remove *all* packages, including xorg window manager, preferred shell etc. # pkg prime-origins | sort | uniq > /etc/packages.lst ### edit and amend as required ### force-delete all existing packages, rebootstrap & install # pkg delete -fy \* # pkg bootstrap -f # pkg install -r FreeBSD `cat /etc/packages.lst` A+ Dave