I'm attempting to
apt-get install fglrx while runnning a custom kernel, and the process is failing when it tries to compile the kernel module. I found a patch on the net that should take care of my problem. How do I apply it to a package fetched via apt-get?
I already know how to extract source files from AMD's install program, patch them, and create .deb packages. That's not what I'm asking here. I'm not using AMD's installer.
Is there an apt cache somewhere? Can I edit it? How do I tell dpkg to unpack a package so I can edit what's inside? How do I re-package it afterwards?