好用的 ar December 28
Hey, ar(1) is such a useful stuff! I downloaded ATI radeon’s driver for Linux, and use alien to convert it to deb. But something wrong about dependency happened when I try to install it. Some file had already been there in xlibmesa-gl @_@ Then I think of ar, what kane has mentioned before.
ar x XXX.deb will help you extract this archive, and you’ll get several files (control.tar.gz, data.tar.gz, debian-binary in my case). What I did next is to add a /Replaces/ to the /control/ inside control.tar.gz and put it back.
The last step is ar r XXX.deb control.tar.gz !! It’ll replace control.tar.gz inside XXX.deb with the given one! Finally, I can dpkg -i XXX.deb happily
Of course there are something useful such as delete, append, move, and print. They’re helpful