Ask Your Question

I know dnf keeps a history; can I use this to replicate my installations on another box?

asked 2017-06-21 19:19:25 -0500

wavis gravatar image

I just rsynced my home directory to a new laptop. I can list installed but I'm sure many of those are transient dependencies. How may I replicate all of my installs on the new box?

edit retag flag offensive close merge delete


That's an interesting question. However, what do you mean by "transient dependencies?"

sideburns gravatar imagesideburns ( 2017-06-21 19:33:06 -0500 )edit

@sideburns, I think I actually should have used the word transitive dependency, which is a dependency of something I installed, or a dependency of a dependency. IE transitive dependencies are things I didn't explicitly want to install, but had to have for other reasons. Ideally I could get a list of just the things I explicitly installed, minus their dependencies (because their dependencies would be resolved and installed anyway).

wavis gravatar imagewavis ( 2017-06-21 19:48:58 -0500 )edit

OK, I thought you might mean packages that were dependencies of programs you later removed. I'm not sure, but you may not be saving any time or bandwidth with this as dnf still has to resolve the dependencies and ends up downloading and installing the same packages either way.

sideburns gravatar imagesideburns ( 2017-06-21 20:16:24 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-06-21 20:51:18 -0500

Aeyoun gravatar image
  • dnf list installed gives you all currently installed packages on the system.
  • dnf history userinstalled gives you all installed packages that aren’t a part of the default installation.

Both commands could be used to achieve replication; which is your sated goal. The latter is probably nearer what you want, however.

edit flag offensive delete link more



Note: Apps that you have manually installed (for example to /opt) will not be included.

florian gravatar imageflorian ( 2017-06-22 01:29:09 -0500 )edit

Thanks! history userinstalled is almost exactly what I'm looking for. It should be short work to dnf install that whole list on a new computer.

wavis gravatar imagewavis ( 2017-06-30 20:11:12 -0500 )edit

Question Tools

1 follower


Asked: 2017-06-21 19:19:25 -0500

Seen: 143 times

Last updated: Jun 21 '17