1

I have to install a software on some devices with debian package, it isn't available for their architectures on apt for debian (but it is available for other distibutions as e.g. ubuntu), and they aren't powerful enough to compile it on themselves. Considering that sources are available I want to use another machine to create an easily offline installable deb package. Is there a way (or better some automatic way with something like apt-build) to do this properly without messing with all dependencies manually?

1
  • @Quasímodo I know it is buildable for arm because it is already available for arm on other distributions.
    – AndreaF
    Commented Jun 9, 2022 at 21:26

1 Answer 1

1

Use Pbuilder or Sbuild to build in your more powerful machine.

5
  • Thanks I will check. Some more detail on main differences between one option or another? What is more easy to use?
    – AndreaF
    Commented Jun 9, 2022 at 21:32
  • This is a common doubt, they are pretty similar, I'm sure there was a question on Askubuntu but I failed to find it. I'd pick the one with better tutorial. Debian and Ubuntu tutorials aren't great in my humble opinion. They are outdated or makes one get lost into details.
    – Quasímodo
    Commented Jun 9, 2022 at 21:36
  • This pbuilder configuration is very handy for building for different distros and arches (e.g. i386 on amd64). sbuild supports cross-building so it may be better-suited if you need to build for architectures which can’t run natively on your builder. Commented Jun 10, 2022 at 4:51
  • Thanks for the additional resources, @StephenKitt. Do you see advantages to prefer that to a simpler pbuilder-dist dist arch build x.dsc? (At least judging by the header, "How to build for different distributions", that should do it IIRC.)
    – Quasímodo
    Commented Jun 10, 2022 at 20:54
  • @Quasímodo I’ve never tried pbuilder-dist, it didn’t exist when I set my multi-distro/multi-arch pbuilder up! So I don’t have an informed opinion. Commented Jun 11, 2022 at 5:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .