I moved to a new server and I want to move all the packages I installed through YUM on the old server to the new one. Also I will need to move the repositories with this. How can I do that? I looked online and I'm not finding this anywhere.
Asked
Active
Viewed 2,993 times
0
-
Why not just install them? just issue `yum install` on new server (same as you did on old server, one thing you may want to carry over is your `/etc/yum.repos.d`. – alexus May 05 '16 at 16:30
-
i was about to ask about keys but the post below answered it. – learning it May 05 '16 at 19:15
-
keys are part of repo and they're public, they'd get imported to your system as soon as you try to install package. – alexus May 05 '16 at 20:03
1 Answers
0
I'd start such a script by copying the contents of /etc/yum.repos.d/
and /etc/pki/rpm-gpg/
to the new system and install the packages listed when running yum list installed
on the original system.
tamale
- 294
- 2
- 5
-
1
-
worked great, thank you. Saved me a lot of frustration. Helped more than you know. thanks. – learning it May 05 '16 at 19:28
-