by InFerNo » Sun Jun 02, 2024 8:23 pm
If you are able to attach the disk (sd card?) to a computer with Arch Linux, then you can run pacman to downgrade packages from there.
You need to override the defaults from your pacman.conf by passing the variables as parameters to pacman.
For example, if you [i][b]know[/b][/i] a package caused the issue, you can downgrade it by running this command, after editing the /mountpointoftheSDcard/etc/pacman.conf file to match a few altered paths, so you don't have to pass them everytime (change them back afterwards):
[code]sudo pacman -U /mountpointoftheSDcard/var/cache/pacman/pkg/systemd-253.7-1-armv7h.pkg.tar.xz --arch armv7h --verbose --config /mountpointoftheSDcard/etc/pacman.conf[/code]
If you have downloaded the package to your Downloads folder (also different architecture example):
[code]sudo pacman -U /home/user/Downloads/raptor-2.0.15-19-aarch64.pkg.tar.xz --root /mountpointoftheSDcard --arch aarch64 --verbose --config /mountpointoftheSDcard/etc/pacman.conf[/code]
You can pass multiple packages as well, or specify to use the pacman.conf file of the host machine (look at its contents first to determine how this would affect the target system).
[code]sudo pacman -U /home/user/Downloads/raptor-2.0.15-19-aarch64.pkg.tar.xz /home/user/Downloads/openssl-1.1.1.o-1-aarch64.pkg.tar.xz /home/user/Downloads/icu-71.1-1-aarch64.pkg.tar.xz "/home/user/Downloads/freerdp-2 2.7.0-1-aarch64.pkg.tar.xz" /home/user/Downloads/harfbuzz-icu-4.3.0-1-aarch64.pkg.tar.xz /home/user/Downloads/gspell-1.10.0-2-aarch64.pkg.tar.xz --root /mountpointoftheSDcard --arch aarch64 --verbose --config /home/user/pacman.conf[/code]
*note, example packages used, use the correct ones instead!