dpkg broken package fix

January 16, 2008 at 9:44 pm Comment

Last resort fix for broken packages in the dpkg system that fail on the invoke-rc.d stop command:
- Find the .prerm file for your program in var/lib/dpkg/info/
- Edit the line that says “invoke-rc.d [prog_name] stop || exit $?” to “/bin/true || exit $?”
- Try again. Done.

Tags: ,

Checking out phpMyAdmin with SVN

October 27, 2006 at 1:48 pm Comment

This is more a reminded to myself than anyone else, but as of this posting you can get the latest version of phpMyAdmin via SVN:

svn checkout https://svn.sourceforge.net/svnroot/phpmyadmin/tags/STABLE/phpMyAdmin phpMyAdmin-stable

"Argument List Too Long" Workaround

September 25, 2006 at 8:18 am Comment

Sometimes when performing a remove on a long list, you’ll get the error “Argument list too long”. For example, I have a script that pollutes the /tmp directory with msg-11* directories (perl MIME::Parser directories). Obviously I should clean this up, but I also needed a way to delete all these directories. The best way is to use a combination of xargs, find and rm.

For example:
find . -name ‘msg-11*’ | xargs rm -r