From: Harvie Date: Wed, 9 Jun 2010 01:11:03 +0000 (+0200) Subject: renamed pacman-repairs to pacman-doctor + added pacman-reinstall-all X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=39346d802f26bee1cb6856f71beb8bd952f421e2;p=mirrors%2FPrograms.git renamed pacman-repairs to pacman-doctor + added pacman-reinstall-all --- diff --git a/bash/pacman-repairs/pacorphans.sh b/bash/pacman-doctor/pacman-orphans.sh similarity index 100% rename from bash/pacman-repairs/pacorphans.sh rename to bash/pacman-doctor/pacman-orphans.sh 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"