Re: How to unpack an repack a deb package?
Hi Christian,
> Well, the easiest way to do so, if you have Debian's packaging tools
> (notably dpkg-deb and fakeroot) installed:
>
> ($DIR/ shouldn't exist prior to this and could be the package name)
> dpkg-deb -x package.deb $DIR/
> dpkg-deb -e package.deb $DIR/DEBIAN
> $EDITOR $DIR/DEBIAN/control
> fakeroot dpkg-deb -b $DIR package_repacked.deb
> rm -r $DIR
>
Yes, great, this worked! I just needed to change the deps od an external
package (fakturama*.deb) from openjdk-7-jre-headless to openjdk-8-jre-headless
as the old 7-package would break my system. Doing as you suggested works well
and I will send the developer a mail.
What also should work is dpkg --unpack bla.deb /whatever/bla. Howver, I did
not know, that the DEBIAN directory must be unpacked manually, too.
Most important: It si working as I wanted, and I have learned something more.
Isn't that the most important? Learning?
Haved a nice weekend and thank you very much!
> Regards,
> Christian
Best
Hans
Reply to: