Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2023 09:28:23 +0200
From:      Polytropon <freebsd@edvax.de>
To:        paul beard <paulbeard@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: switch from i386 to AMD64 without a total rebuild?
Message-ID:  <20230921092823.aa0c2d67.freebsd@edvax.de>
In-Reply-To: <CAMtcK2rD2-jV003dKkxkEpyg6Gt2oS=9sKbV=QmpRTqsFVE0BQ@mail.gmail.com>
References:  <CAMtcK2o82mGRftTS%2BaKHq8U49ARFFz%2BfDrrfXk8ciMzB1PUqxw@mail.gmail.com> <B0C044FE-B2CC-479A-8D4B-6F82DBEBE4F8@prime.gushi.org> <CAMtcK2ruo1mOEngv74qYKqiKxfv2FOcQChiywu3TigM9kAL%2BTQ@mail.gmail.com> <20230920153841.fc6718d812770210f98daa41@sohara.org> <CAMtcK2rD2-jV003dKkxkEpyg6Gt2oS=9sKbV=QmpRTqsFVE0BQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 Sep 2023 07:53:23 -0700, paul beard wrote:
> Thank you, that was how I read it. I will probably go with the superset of
> pkgs I have installed and see about house-cleaning later.

Another option is to have this list as a source for
trimming: Only leave those things on the "to be
installed" list that you _intend_ to install, i. e.,
not caring about dependencies, only listing the
"top ports". For example, if Firefox is a thing
you want to install, only list "firefox", and let
pkg care about any dependencies you might need.
You want CUPS? Only add the cups port plus the
specific additional drivers you might need, _if_
you need any. This way, you won't end up installing
stuff you _actually_ don't need.

Many years ago, I wrote a little "installer helper"
just for this purpose. Install stuff via pkg. Where
it is not possible, e. g., you need compile-time
options that aren't default, do "make missing | pkg
install" for the specific port, so you will only
compile _that_ port, none of its dependencies, then
compile it, "pkg lock", and continue. Then continue
with the next "top port". Goal: Only compile when
it's needed. Yes, I know, I should use p=F3=FCdri=E9r=EA
for that... but lazy people do lazy things...
that surprisingly work... ;-)



Oh, by the way:

On Wed, 20 Sep 2023 07:25:15 -0700, paul beard wrote:
> Starting from scratch made the most sense.

Yes. And:

> And to be fair, I am reluctant to
> remove stuff if I don't know what it's doing/why it was installed.=20

You should check the list of installed software,
read the names, and ask yourself: What is that?
Why is it there? Who or what needs it? Those can
be very hard questions! ;-)

No, seriously: Don't do that. It's the road to
despair.





--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230921092823.aa0c2d67.freebsd>