How to download ALL dependencies for an external .deb package (rescuezilla)? - eviltoast

Hi everyone! I’m trying to prepare a live iso with a USB stick including the additional rescuezilla package (or, alternatively, additional packages for a live rescuezilla .iso). Sadly rescuezilla does not support encryption, and so I’d like to be able to create/encrypt an image on one single live iso, not having to do a double iso boot just for this. I’m trying to do this in a manner that I won’t need internet once I need to use this USB stick. And hence…I found the most quoted command as:

apt-get download $(apt-rdepends |grep -v "^ ")

But this seems to work ONLY if your package is also part of the repo. If it’s an external .deb such as rescuezilla_2.4.2-1_all.deb is, then the command just fails with:

Reading state information... Done
W: Unable to locate package ./rescuezilla_2.4.2-1_all.deb
E: Handler silently failed

So…what can I do to download the many dependencies of rescuezilla onto a USB stick? Thanks!

  • just_another_person@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    This seems like a trick question, but app the repo to your apt sources first, then try to install. Step through for each unresolved dep if needed.

    • iturnedintoanewt@lemm.eeOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      That’s…a lot of dependencies to manually get. This wouldn’t have worked. And I need a reproducible method so I can do this fully offline without having to match apt to anything online.

      • caseyweederman@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        If the dependencies are in the repos you’ve added since, then apt-rdepends should be able to pull them.
        I had to keep chaining grep -v to ignore packages that didn’t exist but the result was a success.