hello,
I am trying to figure out the dependencies (necessary snaps) that are installed before my actually queried snap is installed. Is there a way similar to command: snap info firefox
that can provide list of snaps that will be installed along with firefox
?
For now, there is no way to do that. You can only figure it out from the manifest of the snap.
popey
December 16, 2024, 2:00pm
3
This is a good start:
snap download firefox
unsquashfs firefox_*.snap meta/snap.yaml
grep -E '^base:|^ default-provider:' squashfs-root/meta/snap.yaml
base: core22
default-provider: gtk-common-themes
default-provider: gtk-common-themes
default-provider: gtk-common-themes
default-provider: gnome-42-2204
So if I snap install firefox
, I’ll also get core22
, gtk-common-themes
and gnome-42-2204
(if I didn’t already have them).
Hope that helps.
hi all,
thanks this was useful, ideally it would have been better to fetch this without downloading the snap.
for context I’m trying to write python script for seeding snaps based on given array of snap names