Packages

Hi there

i wonder if someone can help, i have 2 servers (serverA and serverB). on A i have 147 packages, on server B i have 714 packages installed. i need server A to have the same packages as server B. how do i compile a list of only the packages i need? so in other words the list should be 567 packages long? can somebody please help?

pkginfo will give the list of the packages on the system.Now You can have this info on files say for server1 pkgserver1.txt and for server2 pkgserver2.txt

Now use comm to find out the missing packages on server 1.

comm -3 pkgserver2.txt pkgserver1.txt

Thank you very much, this helps me a lot... Thanx!!