From 39346d802f26bee1cb6856f71beb8bd952f421e2 Mon Sep 17 00:00:00 2001 From: Harvie Date: Wed, 9 Jun 2010 03:11:03 +0200 Subject: [PATCH] renamed pacman-repairs to pacman-doctor + added pacman-reinstall-all --- .../pacorphans.sh => pacman-doctor/pacman-orphans.sh} | 0 bash/pacman-doctor/pacman-reinstall-all.sh | 9 +++++++++ 2 files changed, 9 insertions(+) rename bash/{pacman-repairs/pacorphans.sh => pacman-doctor/pacman-orphans.sh} (100%) create mode 100755 bash/pacman-doctor/pacman-reinstall-all.sh 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" -- 2.30.2