by skunark » Tue Dec 14, 2021 5:57 pm
I questioned pactree as well, but i believe the gist is to just install the dependencies needed by pacman before the full upgrade where things start to break. There's also an error with pactree, so i'm not even sure all the dependencies needed by pacman actually get installed. I took the pactree step more of a safety net vs a requirement to do this process as there might be a scenario that this step is actually required.
Just for pure runtime, I think it is best to prune the large packages, but i don't think you need to go that far and prune it down to base. Definitely remove any custom packages or have the aarch64 flavor built and added to a custom repo so those too can be installed at the same time. Also stop all unnecessary services like databases, memcached, apache, etc that eat up memory since they are not needed during this process.