Koozali.org: home of the SME Server

Silly question I know, but how do I......

Offline f21970

  • ***
  • 53
  • +0/-0
Silly question I know, but how do I......
« on: May 23, 2007, 10:48:47 AM »
How do I see what contribs I've got installed. Need to migrate to new hardware and upgrade SME version on an install, but don't know how to see what contribs are installed so I can get new versions of them....what's the command folks?
Yes, I'm a LINUX numpty......
...

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Silly question I know, but how do I......
« Reply #1 on: May 23, 2007, 12:05:32 PM »
If all the contribs are installed from rpms you can do on your old server
Code: [Select]

rpm -qa > list-rpms-old.txt

then install a fresh sme on the new server and update it with yum update. Now
[/code]
rpm -qa > list-rpms-new.txt
[/code]

then, copy list-rpms-old.txt on your new server and do a
Code: [Select]

diff list-rpms-old.txt list-rpms-new.txt


you should see the diferencies between the two
C'est la fin du monde !!! :lol:

Offline f21970

  • ***
  • 53
  • +0/-0
Silly question I know, but how do I......
« Reply #2 on: May 23, 2007, 01:20:20 PM »
That's great! Thanks!!
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Silly question I know, but how do I......
« Reply #3 on: May 23, 2007, 07:52:23 PM »
Quote from: "VIP-ire"
If all the contribs are installed from rpms you can do on your old server
Code: [Select]

rpm -qa > list-rpms-old.txt



"rpm -qa --last" is also a useful command to know - it will list the installed RPMs sorted by the date on which they were installed.