Can a snap be built in a way such as, when the user tries to install it, the snap also installs another package? For example, wget
. Thanks.
Can a Snap Package Depend on a .deb Package? – Packaging Guide
aptdebpackage-managementpackagingsnap
aptdebpackage-managementpackagingsnap
Can a snap be built in a way such as, when the user tries to install it, the snap also installs another package? For example, wget
. Thanks.
Best Answer
The short answer to your question is: no, snaps cannot depend upon .debs in such as way that, when the snap is installed, the .deb is installed as well.
However, the longer answer is that, when building the snap, you can bundle whatever .debs you want within it. To use your example, here's the snapcraft.yaml for a snap that bundles wget within it:
Run
snapcraft
on that and you end up with a snap that has awget
app. It doesn't pull wget in at install-time like you asked, but by pulling it in at build-time perhaps it accomplishes your end goal.