List manually installed packages for a machine migration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

    $ dnf repoquery --userinstalled
    authselect-0:1.5.0-6.fc40.x86_64
    efibootmgr-0:18-6.fc40.x86_64
    grub2-efi-x64-1:2.06-123.fc40.x86_64
    grub2-tools-1:2.06-123.fc40.x86_64
    grub2-tools-extra-1:2.06-123.fc40.x86_64
    grubby-0:8.40-75.fc40.x86_64
    kernel-0:6.11.4-201.fc40.x86_64
    kernel-0:6.8.5-301.fc40.x86_64
    langpacks-en-0:4.0-13.fc40.noarch
    lvm2-0:2.03.25-1.fc40.x86_64
    nvme-cli-0:2.8-1.fc40.x86_64
    shim-x64-0:15.8-3.x86_64
    xfsprogs-0:6.5.0-3.fc40.x86_64
    zile-0:2.6.2-5.fc40.x86_64

Does anyone know of a good strategy (or have a script) to list
manually installed packages; and not include automatically installed
packages that were part of the original install or a system update?

Thanks in advance.

Jeff
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux