On 25 Nov 2020 at 11:58, Mayavimmer wrote: To: fedora <users@xxxxxxxxxxxxxxxxxxxxxxx> From: Mayavimmer <mayavimmer@xxxxxxxxx> Subject: Sync rpms with other computer Date sent: Wed, 25 Nov 2020 11:58:08 +0100 Send reply to: Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx> > How do I sync rpm packages with another computer? > I have a list of the remote's rpms generated with "rpm -qa". > I expect to have to modify a couple of packages in the list due to > hardware dependent rpms like xorg. > Otherwise it should be a simple matter of downloading the rpms from the > edited list and then installing them. > Or is there already a script for this? Rather than a using rpm -qa list, I use rpm --qf "%{NAME}.%{ARCH}\n" -qa I use a script listrpm to make a listing #!/usr/bin/bash rpm --qf "%{NAME}.%{ARCH}\n" -qa | sort | grep -v gpg-pubkey > installed_pkgs"$(date +%F)".txt Then you can copy the file, and run dnf install with that piped into it. Also, do this if I create a machine with a clean install of an OS, and then want to add the missing packages. Sometimes get errors on packages that might no longer be available, but then just delete those lines from file. Good Luck. > _______________________________________________ > 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 +------------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor (Retired) mailto:mikes@xxxxxxxx mailto:msetzerii@xxxxxxxxx Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ +------------------------------------------------------------+ _______________________________________________ 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