about summary refs log tree commit diff
path: root/xdowngrade
blob: 5467842d61d6ee92732d1da633d032c646983f10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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