I found this "pet2dir" script in a post by Tman:
Code: Select all
#!/bin/sh
#Tman
clear
mkdir -p /tmp/pet
cp -f "$@" /tmp/pet 2>/dev/null
cd /tmp/pet
pet2tgz *.pet
tar -x -f *.gz
rm /tmp/pet/*.gz
echo "Done converting:"
ls
spacefm /tmp/pet 2>/dev/null
The "deb2dir" script I just made based on the pet script:
Code: Select all
#!/bin/sh
clear
mkdir -p /tmp/deb
cp -f "$@" /tmp/deb 2>/dev/null
cd /tmp/deb
dpkg-deb -x *.deb /tmp/deb
rm /tmp/deb/*.deb
echo "Done extracting:"
ls
spacefm /tmp/deb 2>/dev/null
I added these scripts to the right-click menu in my SpaceFM, or they could be used from the command line, followed by the filename of the pet or deb package.