Find and remove all packages used by/requiring perl5.28

array=($(sudo pacman -Qqo '/usr/lib/perl5/5.28')); sudo pacman -Rdd ${array[@]}

Re-install all packages (using yay for to allow for AUR packages)

yay -S ${array[@]}

 

Tags