@iturnedintoanewt@lemm.ee avatar

iturnedintoanewt

@iturnedintoanewt@lemm.ee

This profile is from a federated server and may be incomplete. Browse more on the original instance.

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

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...

iturnedintoanewt, (edited )
@iturnedintoanewt@lemm.ee avatar

apt-get download $(dpkg -I rescuezilla_2.4.2-1_all.deb)

Thanks a lot! While it wasn’t as simple as that, it did indeed point me onto the right direction. This command did the trick for me:

apt download $(dpkg -I rescuezilla_2.4.2-1_all.deb | grep -oP ‘(?<=Depends: ).*’ | tr -d ‘,’)

The grep goes there to list only what comes after “Depends:”. The -oP enables the python command to remove the string matching itself, so it leaves the whole list after the match… otherwise it also tries to download a package named “Depends:”. And the tr -d ‘,’ is to remove the commas separating each package, otherwise it fails to find them.

iturnedintoanewt,
@iturnedintoanewt@lemm.ee avatar

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.

iturnedintoanewt,
@iturnedintoanewt@lemm.ee avatar

Thanks! How does this work with OS permissions? As it’s rescuezilla and veracrypt I’m trying to use, both need access to the system partitions in order to be able to mount/read/copy to them. Flatpak can be a bit limited regarding permissions…Moreso on a live iso I guess.

iturnedintoanewt,
@iturnedintoanewt@lemm.ee avatar

Something something reading the post…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #