Sunday, September 25, 2011

Rebuilding a debian/ubuntu deb package

mkdir rebuild 
mv $PACKAGE.deb rebuild
cd rebuild
dpkg -x $PACKAGE.deb common 
dpkg --control $PACKAGE.deb 
nano -w DEBIAN/control 
       remove the "Dependency: libc..." 
cp -a DEBIAN/ common/ 
dpkg -b common $PACKAGE.deb 
sudo dpkg --force-all -i $PACKAGE.deb 
rm -rf common DEBIAN