On Thu, Oct 24, 2024 at 3:39 AM Jeffrey Walton <noloa...@gmail.com> wrote:
> Hi Everyone, > > I have some old hardware that needs a refresh. The old machine is > running Fedora 40 x86_64 fully patched. The new machine is running the > same on a fresh OS install. I want to get a list of packages I > manually installed on the old machine, like Certbot, Emacs and Nginx, > so I can configure the new machine. > > According to < > https://discussion.fedoraproject.org/t/need-help-with-dnf-commands-for-listing-and-installing-packages-to-from-a-txt-file/74932 > > > and <https://unix.stackexchange.com/q/445003>, `dnf repoquery > --userinstalled` should list user installed packages. > > However, I am seeing stuff I did not install. For example, on the new > machine, I only installed Zile (in place of Emacs due to Bug > #2316238). The other packages seem to be due system install or system > update. > > [...] I keep a ~/System directory where I note configuration changes I make to the defaults and also a list of installed packages. I don't backup system files, just my home directory and `/opt`. I do often end up with some installed packages used only for testing/troubleshooting. The ~/System directory allows me to rebuild a system after a disaster or configure a new machine to my needs. It is not hard to determine which packages are missing in a fresh install. A list of installed packages right after a fresh install could be used to generate a list of stuff added after the initial install, but if you end up doing a fresh install on different hardware you might see some different packages (graphics and network). -- George N. White III
-- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue