You need:
unrpm.undeb.pet -> scroll down for attached pet from MU's post
There are more versions of dep2pet, differencies are in GUI usage, and dir2pet usage, see description in attachments below.
Base code I started with:
Code: Select all
#!/bin/sh
DEB=`Xdialog --title "Select file" --wrap --fselect *.deb 0 0 2>&1`
#added check if file exists
if [ -e "$DEB" ]; then
for i in "$DEB"
do
FOLDR=$(echo $i|sed 's/\.deb$//')
done
mkdir "$FOLDR"
cp "$DEB" "$FOLDR"
cd "$FOLDR"
DEB=`ls | grep ".deb"`
undeb "$DEB"
rm "$DEB"
cd ..
FOLDR=`basename $(echo "$FOLDR")`
rxvt -fg yellow -bg black -cr red -e dir2pet "$FOLDR"
rm -R -f "$FOLDR"
rox
fi