X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=bash%2Fpacman-doctor%2Fpacman-reinstall-all.sh;fp=bash%2Fpacman-doctor%2Fpacman-reinstall-all.sh;h=389f203c94a8bfbbeb04bf8255f45d643d21a30a;hb=39346d802f26bee1cb6856f71beb8bd952f421e2;hp=0000000000000000000000000000000000000000;hpb=19683d7fd85f680645c76206b29141433042c78b;p=mirrors%2FPrograms.git diff --git a/bash/pacman-doctor/pacman-reinstall-all.sh b/bash/pacman-doctor/pacman-reinstall-all.sh new file mode 100755 index 0000000..389f203 --- /dev/null +++ b/bash/pacman-doctor/pacman-reinstall-all.sh @@ -0,0 +1,9 @@ +#!/bin/bash +altcache='/tmp/pacman-reinstall-all' +pacman -Qsq | while read package; do + echo "==================== INSTALLING: $package ====================="; sleep 1; + pacman --noconfirm --cachedir "$altcache" -Sf "$package" + yes | LANG=C pacman --cachedir "$altcache" -Scc + echo; +done; +rm -rf "$altcache"