and then restore it with yum install `cat package.list
but this is going to include all packges including dependencies right? is there a better way to do this?
also how would I handle the diffrent repos I have?
I use deja-dup for backups but I don’t back up everything. In fact, I think of fresh installs as an opportunity to clean up all the useless bits I’ve collected over time
I always upgrade to new releases—I haven’t had to fresh install in years, but in case I do have to, I have a separate /home partition that I just mount each time: if you use the same username during the fresh install, it will use the same user directory as before.
There are also lots of utilities that install lots of stuff for users. I’d personally avoid them unless you’ve had a chance to check what they do under the hood. I prefer throwing the commands into a quick shell script instead
You could parse your dnf transactions from dnf history list, but i can’t think of a way of doing this easily. There’s no problem with also explicitly including the deps in your list—they’ll be installed by dnf anyway. If you only want to list the packages you used in the command and not the deps, I think you’re going to have to keep track of them like I do. I can’t think of a better way.
You can always back up your /etc/yum.repos.d folder where all your repository configurations are stored?
The easyest way would be to take a vanilla system, in a VM for instance, and install all components you want using ansible, thereby creating a playbook.
By maintaining this playbook, you will be able to deploy any new system the way you like.
I fully agree, but if you reach the point that you conviced yourself it is worth the effort to invest time to have every new installed system the way you want it, it doesn’t really matter what tool you use. So you might as well use a ‘powertool’