Snap access to local packages dpkg data


I’m working on a snap to deliver a python script that would help assess your packages database and report back to you what is supported with LTS and what is not what is third party etc. it is intended to work on xenial/bionic and focal
So that snap will need read access to your local dpkg and apt cache.

I’m assuming I have to make this a classic snap. That’s what I’m doing at the moment and it is working but I wanted to get additional inputs in case there’s another way to do this.


You can use strict mode by using The system-files interface to access /var/lib/snapd/hostfs. I suggest you take a look at the cvescan snap that is doing precisely this.

Appreciated @jdstrand. I will have a look and let you know if I have further questions.