It’a atually very easy. Just type:

 yum install ImageMagick ImageMagick-perl

Output:

Loaded plugins: fastestmirror, priorities
Determining fastest mirrors
 * base: mirror.kiewel-online.ch
 * epel: mirrors.n-ix.net
 * extras: mirror.kiewel-online.ch
 * updates: mirror.kiewel-online.ch
base                                                     | 1.1 kB     00:00
epel                                                     | 3.7 kB     00:00
epel/primary_db                                          | 3.8 MB     00:00
extras                                                   | 2.1 kB     00:00
extras/primary_db                                        | 207 kB     00:00
updates                                                  | 1.9 kB     00:00
updates/primary_db                                       | 1.0 MB     00:00
vz-base                                                  |  951 B     00:00
vz-updates                                               |  951 B     00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ImageMagick.i386 0:6.2.8.0-15.el5_8 set to be updated
--> Processing Dependency: libXt.so.6 for package: ImageMagick
--> Processing Dependency: liblcms.so.1 for package: ImageMagick
--> Processing Dependency: libwmflite-0.2.so.7 for package: ImageMagick
--> Processing Dependency: libgs.so.8 for package: ImageMagick
--> Processing Dependency: librsvg-2.so.2 for package: ImageMagick
---> Package ImageMagick.x86_64 0:6.2.8.0-15.el5_8 set to be updated
--> Processing Dependency: libgs.so.8()(64bit) for package: ImageMagick
--> Processing Dependency: libwmflite-0.2.so.7()(64bit) for package: ImageMagick
---> Package ImageMagick-perl.x86_64 0:6.2.8.0-15.el5_8 set to be updated
epel/filelists_db                                        | 5.6 MB     00:00
extras/filelists_db                                      | 250 kB     00:00
updates/filelists_db                                     | 4.1 MB     00:00
--> Running transaction check
---> Package ghostscript.i386 0:8.70-14.el5_8.1 set to be updated
--> Processing Dependency: urw-fonts >= 1.1 for package: ghostscript
--> Processing Dependency: ghostscript-fonts for package: ghostscript
---> Package ghostscript.x86_64 0:8.70-14.el5_8.1 set to be updated
---> Package lcms.i386 0:1.18-0.1.beta1.el5_3.2 set to be updated
---> Package libXt.i386 0:1.0.2-3.2.el5 set to be updated
---> Package librsvg2.i386 0:2.16.1-1.el5 set to be updated
--> Processing Dependency: libgsf-1.so.114 for package: librsvg2
--> Processing Dependency: libcroco-0.6.so.3 for package: librsvg2
---> Package libwmf.i386 0:0.2.8.4-10.2 set to be updated
--> Processing Dependency: gd >= 2.0.21 for package: libwmf
---> Package libwmf.x86_64 0:0.2.8.4-10.2 set to be updated
--> Running transaction check
---> Package gd.x86_64 0:2.0.33-9.4.el5_4.2 set to be updated
--> Processing Dependency: pkgconfig for package: gd
---> Package ghostscript-fonts.noarch 0:5.50-13.1.1 set to be updated
---> Package libcroco.i386 0:0.6.1-2.1 set to be updated
---> Package libgsf.i386 0:1.14.1-6.1 set to be updated
---> Package urw-fonts.noarch 0:2.3-6.1.1 set to be updated
--> Processing Dependency: mkfontscale for package: urw-fonts
--> Processing Dependency: mkfontdir for package: urw-fonts
--> Processing Dependency: chkfontpath for package: urw-fonts
--> Running transaction check
---> Package chkfontpath.x86_64 0:1.10.1-1.1 set to be updated
--> Processing Dependency: xfs for package: chkfontpath
---> Package pkgconfig.x86_64 1:0.21-2.el5 set to be updated
---> Package xorg-x11-font-utils.x86_64 1:7.1-3 set to be updated
--> Processing Dependency: libfontenc >= 0.99.2-2 for package: xorg-x11-font-uti                                                                                                                                                              ls
--> Processing Dependency: libfontenc.so.1()(64bit) for package: xorg-x11-font-u                                                                                                                                                              tils
--> Processing Dependency: libXfont.so.1()(64bit) for package: xorg-x11-font-uti                                                                                                                                                              ls
--> Running transaction check
---> Package libXfont.x86_64 0:1.2.2-1.0.4.el5_7 set to be updated
---> Package libfontenc.x86_64 0:1.0.2-2.2.el5 set to be updated
---> Package xorg-x11-xfs.x86_64 1:1.0.2-5.el5_6.1 set to be updated
--> Processing Dependency: ttmkfdir for package: xorg-x11-xfs
--> Processing Dependency: libFS.so.6()(64bit) for package: xorg-x11-xfs
--> Running transaction check
---> Package libFS.x86_64 0:1.0.0-3.1 set to be updated
---> Package ttmkfdir.x86_64 0:3.0.9-23.el5 set to be updated
--> Finished Dependency Resolution
 
Dependencies Resolved
 
================================================================================
 Package                Arch      Version                      Repository  Size
================================================================================
Installing:
 ImageMagick            i386      6.2.8.0-15.el5_8             updates    3.3 M
 ImageMagick            x86_64    6.2.8.0-15.el5_8             updates    3.3 M
 ImageMagick-perl       x86_64    6.2.8.0-15.el5_8             updates    149 k
Installing for dependencies:
 chkfontpath            x86_64    1.10.1-1.1                   base        15 k
 gd                     x86_64    2.0.33-9.4.el5_4.2           base       155 k
 ghostscript            i386      8.70-14.el5_8.1              updates    9.0 M
 ghostscript            x86_64    8.70-14.el5_8.1              updates    8.9 M
 ghostscript-fonts      noarch    5.50-13.1.1                  base       801 k
 lcms                   i386      1.18-0.1.beta1.el5_3.2       base       176 k
 libFS                  x86_64    1.0.0-3.1                    base        30 k
 libXfont               x86_64    1.2.2-1.0.4.el5_7            base       245 k
 libXt                  i386      1.0.2-3.2.el5                base       173 k
 libcroco               i386      0.6.1-2.1                    base       127 k
 libfontenc             x86_64    1.0.2-2.2.el5                base        19 k
 libgsf                 i386      1.14.1-6.1                   base       116 k
 librsvg2               i386      2.16.1-1.el5                 base       178 k
 libwmf                 i386      0.2.8.4-10.2                 base       834 k
 libwmf                 x86_64    0.2.8.4-10.2                 base       832 k
 pkgconfig              x86_64    1:0.21-2.el5                 base        61 k
 ttmkfdir               x86_64    3.0.9-23.el5                 base        46 k
 urw-fonts              noarch    2.3-6.1.1                    base       4.5 M
 xorg-x11-font-utils    x86_64    1:7.1-3                      base        78 k
 xorg-x11-xfs           x86_64    1:1.0.2-5.el5_6.1            base        73 k
 
Transaction Summary
================================================================================
Install      23 Package(s)
Upgrade       0 Package(s)
 
Total size: 33 M
Total download size: 33 M
Is this ok [y/N]: y
Downloading Packages:
(1/21): chkfontpath-1.10.1-1.1.x86_64.rpm                |  15 kB     00:00
(2/21): libfontenc-1.0.2-2.2.el5.x86_64.rpm              |  19 kB     00:00
(3/21): libFS-1.0.0-3.1.x86_64.rpm                       |  30 kB     00:00
(4/21): ttmkfdir-3.0.9-23.el5.x86_64.rpm                 |  46 kB     00:00
(5/21): xorg-x11-xfs-1.0.2-5.el5_6.1.x86_64.rpm          |  73 kB     00:00
(6/21): xorg-x11-font-utils-7.1-3.x86_64.rpm             |  78 kB     00:00
(7/21): libgsf-1.14.1-6.1.i386.rpm                       | 116 kB     00:00
(8/21): libcroco-0.6.1-2.1.i386.rpm                      | 127 kB     00:00
(9/21): ImageMagick-perl-6.2.8.0-15.el5_8.x86_64.rpm     | 149 kB     00:00
(10/21): libXt-1.0.2-3.2.el5.i386.rpm                    | 173 kB     00:00
(11/21): lcms-1.18-0.1.beta1.el5_3.2.i386.rpm            | 176 kB     00:00
(12/21): librsvg2-2.16.1-1.el5.i386.rpm                  | 178 kB     00:00
(13/21): libXfont-1.2.2-1.0.4.el5_7.x86_64.rpm           | 245 kB     00:00
(14/21): ghostscript-fonts-5.50-13.1.1.noarch.rpm        | 801 kB     00:00
(15/21): libwmf-0.2.8.4-10.2.x86_64.rpm                  | 832 kB     00:00
(16/21): libwmf-0.2.8.4-10.2.i386.rpm                    | 834 kB     00:00
(17/21): ImageMagick-6.2.8.0-15.el5_8.i386.rpm           | 3.3 MB     00:00
(18/21): ImageMagick-6.2.8.0-15.el5_8.x86_64.rpm         | 3.3 MB     00:00
(19/21): urw-fonts-2.3-6.1.1.noarch.rpm                  | 4.5 MB     00:00
(20/21): ghostscript-8.70-14.el5_8.1.x86_64.rpm          | 8.9 MB     00:00
(21/21): ghostscript-8.70-14.el5_8.1.i386.rpm            | 9.0 MB     00:00
--------------------------------------------------------------------------------
Total                                            11 MB/s |  33 MB     00:03
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : libfontenc                                              1/23
  Installing     : libXfont                                                2/23
  Installing     : xorg-x11-font-utils                                     3/23
  Installing     : libXt                                                   4/23
  Installing     : ttmkfdir                                                5/23
  Installing     : libFS                                                   6/23
  Installing     : pkgconfig                                               7/23
  Installing     : gd                                                      8/23
  Installing     : libwmf                                                  9/23
  Installing     : libwmf                                                 10/23
  Installing     : libcroco                                               11/23
  Installing     : lcms                                                   12/23
  Installing     : libgsf                                                 13/23
  Installing     : librsvg2                                               14/23
  Installing     : chkfontpath                                            15/23
  Installing     : xorg-x11-xfs                                           16/23
  Installing     : urw-fonts                                              17/23
  Installing     : ghostscript                                            18/23
  Installing     : ghostscript-fonts                                      19/23
  Installing     : ImageMagick                                            20/23
  Installing     : ghostscript                                            21/23
  Installing     : ImageMagick-perl                                       22/23
  Installing     : ImageMagick                                            23/23
 
Installed:
  ImageMagick.i386 0:6.2.8.0-15.el5_8
  ImageMagick.x86_64 0:6.2.8.0-15.el5_8
  ImageMagick-perl.x86_64 0:6.2.8.0-15.el5_8
 
Dependency Installed:
  chkfontpath.x86_64 0:1.10.1-1.1         gd.x86_64 0:2.0.33-9.4.el5_4.2
  ghostscript.i386 0:8.70-14.el5_8.1      ghostscript.x86_64 0:8.70-14.el5_8.1
  ghostscript-fonts.noarch 0:5.50-13.1.1  lcms.i386 0:1.18-0.1.beta1.el5_3.2
  libFS.x86_64 0:1.0.0-3.1                libXfont.x86_64 0:1.2.2-1.0.4.el5_7
  libXt.i386 0:1.0.2-3.2.el5              libcroco.i386 0:0.6.1-2.1
  libfontenc.x86_64 0:1.0.2-2.2.el5       libgsf.i386 0:1.14.1-6.1
  librsvg2.i386 0:2.16.1-1.el5            libwmf.i386 0:0.2.8.4-10.2
  libwmf.x86_64 0:0.2.8.4-10.2            pkgconfig.x86_64 1:0.21-2.el5
  ttmkfdir.x86_64 0:3.0.9-23.el5          urw-fonts.noarch 0:2.3-6.1.1
  xorg-x11-font-utils.x86_64 1:7.1-3      xorg-x11-xfs.x86_64 1:1.0.2-5.el5_6.1
 
Complete!