renamed pacman-repairs to pacman-doctor + added pacman-reinstall-all
authorHarvie <tomas@mudrunka.cz>
Wed, 9 Jun 2010 01:11:03 +0000 (03:11 +0200)
committerHarvie <tomas@mudrunka.cz>
Wed, 9 Jun 2010 01:11:03 +0000 (03:11 +0200)
bash/pacman-doctor/pacman-orphans.sh [moved from bash/pacman-repairs/pacorphans.sh with 100% similarity]
bash/pacman-doctor/pacman-reinstall-all.sh [new file with mode: 0755]

diff --git a/bash/pacman-doctor/pacman-reinstall-all.sh b/bash/pacman-doctor/pacman-reinstall-all.sh
new file mode 100755 (executable)
index 0000000..389f203
--- /dev/null
@@ -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"
This page took 0.142404 seconds and 4 git commands to generate.