I have a working PC and home PC - both run Fedora 24, in some cases I install packages on my work or home pc and forget to repeat the same install on my other working machine,

how do I bring dnf packages synced between 2 Fedora's? For example in pip/python I can do pip freeze > out.text and then install it in a different virtualenv, does something like this exist in Fedora/Linux world?

thanks, Dmitry


1 Answer 1


You can list all the installed packages using rpm:

rpm -qa > list.txt

Installing packages can be worked around like this:

dnf install $(cat list.txt)

(unless you hit the limit of command-line arguments)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .