Daily Shaarli

All links of one day in a single page.

May 9, 2024

Updating all AUR packages dependant on python - r/archlinux

When archlinux switches to a new python base version, the AUR packages installed with an AUR helper do not automatically re-install themselves for the new environment.

End result is that most AUR python-dependent packages now error out with missing module errors (since they are looking in the old python env).

To show packages which have any of their files located in the python lib directory (i.e. all python-dependent packages):

pacman -Qoq /usr/lib/python3.8/

Here's how to find and reinstall packages depending on a certain base package or path (take care of how to input either path or package!):

pacman -Qoq /usr/lib/python3.8/ | paru -S --rebuild -
pactree -r qt-base --depth 1 -l | paru -Ta | paru -S - --rebuild
yay -S --rebuildall --noconfirm $(yay -Qqo /usr/lib/python3.8/)