From nobody Wed Sep 20 14:25:15 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 4RrLRH0K3zz4tkpV for ; Wed, 20 Sep 2023 14:25:31 +0000 (UTC) (envelope-from paulbeard@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrLRF6vBvz3ZgX for ; Wed, 20 Sep 2023 14:25:29 +0000 (UTC) (envelope-from paulbeard@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=d+8DXB09; spf=pass (mx1.freebsd.org: domain of paulbeard@gmail.com designates 2a00:1450:4864:20::229 as permitted sender) smtp.mailfrom=paulbeard@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b703a0453fso115821461fa.3 for ; Wed, 20 Sep 2023 07:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695219928; x=1695824728; darn=freebsd.org; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=OUPugX0kZzbVuhi2NmXtgLTnSsPecCDMq9XSl2SRjYU=; b=d+8DXB09jIDB0eXzZSsCSFeBDdtdNF2SsiqeQRjQMaET04vyv1JF9aEGEFj4G5U3pI BOGWVXKosz8pQD5XxJoAWh310g3ihRjhS+9ucZjVldkKifXcQElyPp6wTqGnUAQb9Nu8 YMP7qV//bh5Wj2tcSo0lLo6gHp5hlVzWGiIJK583/ADUcDffv+ATZQCemsMQPYes5cwr ER9IaoR1niF6KTinTLu67yfcJloJaJY8wsDhWQDhLNjAEDEImBgptHP1q+ivIHocA2GL ciHJdeAndAThqKYW1VdN1PXs4RSAIoebQ6WHyXWXVJANbpBbpA9AdysuvWai6f5b0Fhp HmBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695219928; x=1695824728; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OUPugX0kZzbVuhi2NmXtgLTnSsPecCDMq9XSl2SRjYU=; b=R5yJbOFUfacfcuw36Am75Pby+/H/abw3neHGxWwIrvrSs7AIc4ND2kLWFdfgYLtx3g gPpFZyw5YhyfkzOBslrd6uu4SFsyZ6g4VCAVY6UPgHX9V2UTOoXPhxuNcMLY0wno9JVj kGv9/MFW9jjZvyKTYVtViQ3fbH637ks7ZVPl6E0V3k3XftHSx9dVYGc7blBZJ9uGbzcS 67+UPSUuFy0fxrBodm7sXI0X9b7FUNPDJ2dXXPh8cIlBa7QCCffdVFllpzgwDuvqak9v 5lUKCSLLnIPFFR9cu74sc4EyN6Fi2Z3KekZBbmAb5LrmB7XuHeZCWbqdH7ja0LK/O0WX UaXQ== X-Gm-Message-State: AOJu0YyqWzVQzUW6LAtYoEPztJR28F3dDQIrIpx0awM0lO9JTF5Gj7cT WZytGceMTsZABfxyD9kVdrVvRdXDMzFpmK7GcJnyp8vk0jg= X-Google-Smtp-Source: AGHT+IEWIDAF5JGEMZy5z/T07FsoU13FAQ+TtVXkZOgSwyCMd2WDp9dMyqZ6nYjd0X7J9G4XFYILwfAH0HxbLCJBBbA= X-Received: by 2002:a2e:9cd5:0:b0:2c0:eb3:3200 with SMTP id g21-20020a2e9cd5000000b002c00eb33200mr2105163ljj.16.1695219927427; Wed, 20 Sep 2023 07:25:27 -0700 (PDT) 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 References: In-Reply-To: From: paul beard Date: Wed, 20 Sep 2023 07:25:15 -0700 Message-ID: Subject: Re: switch from i386 to AMD64 without a total rebuild? Cc: FreeBSD-questions Content-Type: multipart/alternative; boundary="000000000000972fee0605cb2568" X-Spamd-Bar: + X-Spamd-Result: default: False [1.01 / 15.00]; MISSING_TO(2.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_LONG(-0.99)[-0.991]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::229:from]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org] X-Rspamd-Queue-Id: 4RrLRF6vBvz3ZgX --000000000000972fee0605cb2568 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Starting from scratch made the most sense. After all, I am working in a virtual environment so no hardware to fool around with, I pulled a list of installed packages and fed that to a loop on the new system after editing a few things (php80 -> php81) and that went well. Just to be clear after reading these replies and hier(7), I should be able to move /usr/local/etc /usr/local/share across as platform-independent hierarchies? The advice to dump and restore databases is sound, as well: I would have simply copied /var/db/mysql /eyeroll I don't think I understand pkg leaf. And to be fair, I am reluctant to remove stuff if I don't know what it's doing/why it was installed. Ideally build dependencies that are not needed at runtime are cleaned up but I bet there is some cruft, given the very different totals given below. pkg leaf | wc -l 184 pkg info | wc -l 531 Disk space is not an issue, a 64Gb disk image is more than adequate here. On Mon, Sep 18, 2023 at 1:26=E2=80=AFAM Dan Mahoney = wrote: > > > > On Sep 16, 2023, at 7:38 PM, paul beard wrote: > > > > Some of the applications on my system are griping about a lack of 64 bi= t > support so I am looking into a switch. I am running it as a virtualbox > guest OS so cloning the existing disk was my first step. Can I somehow pu= t > AMD64 on the clone? Or do I have to start from scratch and then add all t= he > packages and configs, etc? > > Most of the files in /etc and /usr/local/etc will port easily to the new > system. I would simply run =E2=80=9Cpkg leaf=E2=80=9D and use that to de= termine the list > of what you need to install on the new system. > > If you=E2=80=99re running some kind of databases (SQL, bdb, etc), I would= look > into how to dump and restore those on the new system, just as a means of > caution. > > -Dan --=20 Paul Beard / www.paulbeard.org/ --000000000000972fee0605cb2568 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Starting from scratch made the most sense. After all, I am= working in a virtual environment so no hardware to fool around with, I pul= led a list of installed packages and fed that to a loop on the new system a= fter editing a few things (php80 -> php81) and that went well. Just to b= e clear after reading these replies and hier(7), I should be able to move /= usr/local/etc /usr/local/share across as platform-independent hierarchies? = The advice to dump and restore databases is sound, as well: I would have si= mply copied /var/db/mysql /eyeroll=C2=A0

I don't thi= nk I understand pkg leaf. And to be fair, I am reluctant to remove stuff if= I don't know what it's doing/why it was installed. Ideally build d= ependencies that are not needed at runtime are cleaned up but I bet there i= s some cruft, given the very different totals given below.=C2=A0
=
pkg leaf | wc -l=C2= =A0
=C2=A0 =C2=A0 =C2=A0184
pkg info | wc -l=C2=A0
=C2=A0 =C2=A0 =C2=A0531

Disk space is not an issue, a 64Gb disk image is more= than adequate here.=C2=A0



On Mon, Sep 1= 8, 2023 at 1:26=E2=80=AFAM Dan Mahoney <danm@prime.gushi.org> wrote:


> On Sep 16, 2023, at 7:38 PM, paul beard <paulbeard@gmail.com> wrote:
>
> Some of the applications on my system are griping about a lack of 64 b= it support so I am looking into a switch. I am running it as a virtualbox g= uest OS so cloning the existing disk was my first step. Can I somehow put A= MD64 on the clone? Or do I have to start from scratch and then add all the = packages and configs, etc?

Most of the files in /etc and /usr/local/etc will port easily to the new sy= stem.=C2=A0 I would simply run =E2=80=9Cpkg leaf=E2=80=9D and use that to d= etermine the list of what you need to install on the new system.

If you=E2=80=99re running some kind of databases (SQL, bdb, etc), I would l= ook into how to dump and restore those on the new system, just as a means o= f caution.

-Dan


--
--000000000000972fee0605cb2568--