Originally published August 21, 2016 @ 10:08 am
I just built a new CentOS box and needed to make sure it had all the same packages installed as one of my other servers. So, before this gets lost in the shell history, here’s some quick syntax. To make your life easier, I suggest you temporarily set up passwordless root SSH. Also, make sure you have the same repos configured on both boxes.
f=/tmp/missing_packages.txt model_server=server_name comm -23 <(ssh -qtT ${model_server} "rpm -qa --queryformat='%{N}.%{arch}\n' | sort -f") <(rpm -qa --queryformat='%{N}.%{arch}\n' | sort -f) > ${f} yum -y install $(cat ${f}) 2>/dev/null
Experienced Unix/Linux System Administrator with 20-year background in Systems Analysis, Problem Resolution and Engineering Application Support in a large distributed Unix and Windows server environment. Strong problem determination skills. Good knowledge of networking, remote diagnostic techniques, firewalls and network security. Extensive experience with engineering application and database servers, high-availability systems, high-performance computing clusters, and process automation.