S
S
Sinot2015-12-14 16:50:34
linux
Sinot, 2015-12-14 16:50:34

How to unpack a deb package into a directory, as if it had been installed?

Greetings.
So that there are no questions "What the hell is it for?" I will immediately describe the whole situation.
We have:

  • A machine running Debian Sid amd64.
  • A thin client from HP running something mostly on some sort of Ubuntu armel.
  • The image (dd) of the thin client.
  • A bunch of deb packages for a thin client.

It didn't work for me to run the image under a virtual machine (I tried by analogy with Fedora for qemu/kvm). For another thin client from HP (x86) just booted from the dd image. There is a regular program for centralized management of thin clients, through which you can install all packages, but this is done shamelessly for a long time (15-20 minutes). The firmware update is much faster (essentially just copying and maybe some other settings are happening).
So the idea came up to install all the packages in the firmware in advance. I decided to unpack the packages and manually copy them to the dd (armel) mounted image. But how to unpack them correctly? Unpacking the binaries is not a problem, but what to do with the scripts that should be executed after installation is not clear.
In general, I'm looking for advice on this matter, disassembling all the scripts manually is not an option (there are 177 packages).
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
neol, 2015-12-14
@neol

You can try
dpkg --root -i package.deb
But I doubt it will work, because the architectures are different, and there seems to be a chroot.
Is it possible to regularly update one of the clients, remove the image from it and then roll it out to the rest?

V
Vladimir, 2015-12-14
@rostel

may try to add to the image
see this Editing the image...
most likely it will help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question