🦊

snapcraft

Download snapcraft.yaml of a snap

snap download <snapname> && unsquashfs *.snap

The file is in squashfs-root/snap/snapcraft.yaml.

Download and unpack a bunch of snaps to audit:

declare -a arr=(microk8s docker canonical-livepatch etcd lxd vault chromium kubectl gnome-system-monitor prometheus libreoffice juju conjure-up ufw kubelet snap-store gnome-dictionary kube-proxy kube-scheduler kube-controller-manager gnome-calculator eog quadrapassel gnome-logs go cdk-addons kube-apiserver maas nats gnome-contacts data-science-stack dragonboard opensearch gnome-clocks go-example-webserver kubefed ubuntu-frame prometheus-alertmanager mysql-shell shotwell snappy-debug xkcd-webserver gnome-boxes ubuntu-frame-vnc kubernetes-worker bluez modem-manager gnome-calendar iot-kernel ovn-chassis steam snapd snap-store-proxy kubeadm network-manager ubuntu-frame-osk mesa-core22 pc k8s snap-store-proxy-client bcc wireless-tools chromium-ffmpeg pi2 ubuntu-core gedit maas-cli microceph canonical-livepatch-downloader ubuntu-desktop-bootstrap grafana gnome-sudoku openstack landscape-client charmcraft strace-static microcloud lp-build-snap thunderbird microovn multipass openstackclients gnome-characters microstack mir-kiosk rustup prometheus-grok-exporter dotnet-sdk prometheus-blackbox-exporter snapcraft charmed-mongodb openstack-hypervisor eks octavia-diskimage-retrofit libertine loupe charm rockcraft ubuntu-image review-tools)

for snap in "${arr[@]}"
do
  snap download $snap
  unsquashfs ${snap}*.snap
  mv squashfs-root $snap
done

GNOME plugin

Where possible, use the [gnome] plugin for hardware compatibility.