Skip to content

Instantly share code, notes, and snippets.

@pksunkara
Created Oct 20, 2011
Embed
What would you like to do?
Extract deb package to local /usr folder
#!/bin/sh
if [ $# -ne 1 ]
then
echo "Usage: $0 file.deb"
exit 0;
fi
ar vx $1
rm debian-binary
rm control.*
rm $1
tar -C /home/pkumar -xzvf data.tar.gz
rm data.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment