Install and Keep .deb Packages after Update

I have two .deb packages that I install on my VyOS box. Vnstat for bandwidth usage, and a monitoring service called New Relic.

Is there anyway to add these packages in some way that they will carry forward with image updates? Right now I have to re-install after each update.

Hi @jbhardman. There are no general solution for this, but you can try to use /config/scripts/vyos-postconfig-bootup.script and store deb packages in /config directory
So add to this script something like

if ! dpkg -s vnstat >/dev/null 2>&1; then
  sudo dpkg -i /config/vnstat.deb

I think I’m going to move to using my own builds. And build in the packages I want into the image. Thanks for the tip though.