Linux Package Backup will allow you to backup all the packages you have in your system, so that they can be easily restored.
These are going to, by default, be restored in name only, i.e. the script will backup which packages you have, on restore it will then install the latest stable version of that package
Package Sources | Backup | Restore |
---|---|---|
snaps | ✔️ | ✔️ |
flatpaks | ✔️ | |
apt | ✔️ | ✔️ |
dnf | ✔️ | |
yum | ✔️ | |
rpm | ✔️ |