From c820f72b1af215bdb4dd73377ac734722e8ad124 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 2 Jan 2015 12:14:17 +0100 Subject: add xdowngrade --- xdowngrade | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 xdowngrade (limited to 'xdowngrade') diff --git a/xdowngrade b/xdowngrade new file mode 100755 index 0000000..5467842 --- /dev/null +++ b/xdowngrade @@ -0,0 +1,13 @@ +#!/bin/sh -e +# xdowngrade PKGS.xbps... - install XBPS package directly from .xbps file + +T=$(mktemp --tmpdir -d xdowngrade-$(date -I).XXXXXXXX) +ln -s -t $T/ "$@" +xbps-rindex -a $T/* +pkg= +for f; do + f=${f##*/} + pkg="$pkg ${f%-*}" +done +xbps-install -i -R $T -f $pkg +rm -r $T -- cgit 1.4.1