Re: Sync rpms with other computer

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

 



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



[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