If you’re currently running a rpm distro, you can make it easier on yourself by using the duke nukem forever command to make a list of your installed programs: dnf list installed.
Once that’s outputting an appropriate format, dump it into a text file with | oldprogs.txt.
On your new computer, that same duke nukem forever command can be used to install from the list with something like dnf install << oldprogs.txt
I bet you can come up with a way to stuff all that into a neat little one liner that’ll provide error handling, output teeing and everything else!