This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the Dnf repoquery subcommand supports has a new option for listing all user-installed packages: | |
$ dnf repoquery --qf '%{name}' --userinstalled \ | |
| grep -v -- '-debuginfo$' \ | |
| grep -v '^\(kernel-modules\|kernel\|kernel-core\|kernel-devel\)$' > pkgs_a.lst | |
In contrast to other methods, it also lists all debuginfo packages. The additional grep in the above example filters them out. | |
To install the list on host B: | |
$ < pkgs_a.lst xargs dnf -y install |
OlderNewer