Skip to content

Fresh install

jeremyd2019 edited this page Jul 6, 2021 · 4 revisions

Fresh install

As of 2021-07-05, @lazka has graciously updated the official msys2 i686 repo with my built packages, and uploaded a new installer, so this became a lot easier.

Download a 20210705 package from https://github.com/msys2/msys2-installer/releases/tag/nightly-i686. Extract or install it.

If you want to get my updates moving forward:

Open an msys2 shell.

Edit /etc/pacman.conf, add the following before [msys2] section.

[build32]
Server = https://github.com/jeremyd2019/msys2-build32/releases/download/repo
SigLevel = Optional

Run pacman -Syu, taking default answers. Kill all running msys2 processes if asked.

Run msys32\autorebase.bat.

If it said it installed pacman.conf.pacnew, restart the shell, run pacman -S --needed vim etc-update. Run EDITOR=vim etc-update, select /etc/pacman.conf, and merge, selecting right for everything but the addition of [build32] where you have to eb (edit both), and put [build32] section after [ucrt64] and [clang64]. After the merge is completed, update any other files that need updating (like the mirrorlists).

Then run pacman -Syu again, taking default answers.

You should now be ready to go with a fresh msys2 i686 install!

Outdated instructions

Get the latest (last) i686 base. Or, if you don't mind getting my repackaging of it, a self-extracting version.

Extract it.

Edit msys32/etc/post-install/07-pacman-key.post and comment out the pacman-key --refresh-keys line. The version of gnupg included points to no-longer-present keyservers, so this is destined to fail, and waste time.

Run msys32\msys2_shell.cmd -defterm -no-start -c 'true' to get the post-install scripts out of the way.

Run msys32\msys2_shell.cmd -defterm -no-start -msys2 to get a shell.

FIRST THING you need to do is pacman -U https://mirror.msys2.org/msys/i686/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz. Do this before trying to sync pacman or anything, and life will be much easier.

Edit /etc/pacman.conf, add the following before [msys2] section.

[build32]
Server = https://github.com/jeremyd2019/msys2-build32/releases/download/repo
SigLevel = Optional

Run pacman -Syu, taking default answers. Kill all running msys2 processes.

Run msys32\autorebase.bat.

Restart the shell, run pacman -S --needed vim etc-update. Run EDITOR=vim etc-update, select /etc/pacman.conf, and merge, selecting right for everything but the addition of [build32] where you have to eb (edit both), and put [build32] section after [ucrt64] and [clang64]. After the merge is completed, select -5 to update all the mirrorlists. Then run pacman -Syu again, taking default answers.

You should now be ready to go with a fresh msys2 i686 install!

Clone this wiki locally