From 51cb4ee86a26ade0de1455da9356e46cbd88bed4 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 3 Jan 2012 16:18:25 +0100 Subject: [PATCH] add update-installed-deb --- update-installed-deb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 update-installed-deb diff --git a/update-installed-deb b/update-installed-deb new file mode 100755 index 0000000..b0de93a --- /dev/null +++ b/update-installed-deb @@ -0,0 +1,19 @@ +#!/bin/sh +set -e + +if [ `id -u` = 0 ]; then + SUDO= +else + SUDO=sudo +fi + +P="" +for deb in *.deb; do + if dpkg -s ${deb%%_*} 2>/dev/null|grep -q '^Status:'; then + P="$P $deb" + else + echo "Skipping $deb, not installed" + fi +done + +$SUDO dpkg -i $P -- 2.39.5