Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2023 07:25:15 -0700
From:      paul beard <paulbeard@gmail.com>
Cc:        FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   Re: switch from i386 to AMD64 without a total rebuild?
Message-ID:  <CAMtcK2ruo1mOEngv74qYKqiKxfv2FOcQChiywu3TigM9kAL%2BTQ@mail.gmail.com>
In-Reply-To: <B0C044FE-B2CC-479A-8D4B-6F82DBEBE4F8@prime.gushi.org>
References:  <CAMtcK2o82mGRftTS%2BaKHq8U49ARFFz%2BfDrrfXk8ciMzB1PUqxw@mail.gmail.com> <B0C044FE-B2CC-479A-8D4B-6F82DBEBE4F8@prime.gushi.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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 AM 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 bit
> 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 put
> AMD64 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
> system.  I would simply run “pkg leaf” and use that to determine the list
> of what you need to install on the new system.
>
> If you’re 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



-- 
Paul Beard / www.paulbeard.org/

[-- Attachment #2 --]
<div dir="ltr">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 -&gt; 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 <div><br></div><div>I don&#39;t think I understand pkg leaf. And to be fair, I am reluctant to remove stuff if I don&#39;t know what it&#39;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. </div><div><br></div>pkg leaf | wc -l<span class="gmail-Apple-converted-space"> </span><br>     184<br>pkg info | wc -l<span class="gmail-Apple-converted-space"> </span><br><div>     531</div><div><br></div><div>Disk space is not an issue, a 64Gb disk image is more than adequate here. </div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 18, 2023 at 1:26 AM Dan Mahoney &lt;<a href="mailto:danm@prime.gushi.org">danm@prime.gushi.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
<br>
&gt; On Sep 16, 2023, at 7:38 PM, paul beard &lt;<a href="mailto:paulbeard@gmail.com" target="_blank">paulbeard@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt; Some of the applications on my system are griping about a lack of 64 bit 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 put AMD64 on the clone? Or do I have to start from scratch and then add all the packages and configs, etc? <br>
<br>
Most of the files in /etc and /usr/local/etc will port easily to the new system.  I would simply run “pkg leaf” and use that to determine the list of what you need to install on the new system.<br>
<br>
If you’re 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.<br>
<br>
-Dan</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Paul Beard / <a href="http://www.paulbeard.org/" target="_blank">www.paulbeard.org/</a><br></div>

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