about summary refs log tree commit diff
path: root/xdowngrade
blob: 443f357b9a81ba99d7e36eb8f41c7b6d1ce6d247 (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 -r -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