I have a packages deb file with all dependencies deb file.
Is it possible to create a final deb file (one file) using all. Say for example firefox.deb
has 10 dependencies in another .deb
file. So there is an order to install all the dependencies then afterwards firefox.deb
. May I create a fullFirefox.deb
file which automatically maintain everything ? I do not have the source, just the deb files.
It is possible, but you'll likely run in several issues. First, each package has it's own pre- and post-installation scripts and dependencies in the control file. Even if you make a package provide the contained packages using the
Provides
field, future upgrades may ruin your God package:libpango1.0-0
So, it's better not to create a God package, but install each package separately. If you need to install software offline, see How can I install software or packages without Internet (offline)?
How to create a God package (not recommended):
cd
into itdpkg -x filename.deb .
dpkg --control filename.deb tmpdeb
. A new directory will be created, namedtmpdeb
. Adjust the control files like changing the name to avoid conflicts later. When done, move / merge the tmpdeb directory with the DEBIAN directory (create if needed). Repeat it for each deb filecd ..
~/godpackage
and store the newly created .deb file in the current directory:dpkg-deb --build ~/godpackage .