Re: List manually installed packages for a machine migration

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

 



On Thu, Oct 24, 2024 at 3:39 AM Jeffrey Walton <noloader@xxxxxxxxx> 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@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