So instead of reinventing the wheel with every problem or challenge I face, I turn to google to see if someone has already solved it before.
Not every time I find an answer, sometimes there is an answer but it simply doesn't work for me.
My idea here is pretty simple, collect the problems I had to solve on my own for future reference. It's for me, not for you, but if it helps you, the better.
Today's problem: upgrading ImageMagic 6.2.8 to 6.7.9-10 on CentOS 5.6
I assume you are root, and that you know what you are doing.
cd /root/repo
rpm -Uvh http://mirror.i3d.net/pub/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm
wget ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/linux/CentOS/x86_64/ImageMagick-6.7.9-10.x86_64.rpm
wget ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/linux/CentOS/x86_64/ImageMagick-devel-6.7.9-10.x86_64.rpm
yum remove ImageMagick\* -y
yum install -y --downloadonly --downloaddir=/root/repo/ ImageMagick-6.7.9-10.x86_64.rpm ImageMagick-devel-6.7.9-10.x86_64.rpm
rpm -Uvh ImageMagick-6.7.9-10.x86_64.rpm \
ImageMagick-devel-6.7.9-10.x86_64.rpm \
libtool-ltdl-1.5.22-7.el5_4.x86_64.rpm \
xz-libs-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm \
jasper-libs-1.900.1-14.el5.x86_64.rpm \
jasper-devel-1.900.1-14.el5.x86_64.rpm \
fltk-1.1.9-4.el5.x86_64.rpm \
fftw3-3.2.2-3.el5.x86_64.rpm \
openexr-1.4.0a-1.el5.rf.x86_64.rpm
You might need to change a little here or there, your list of downloaded files might be different, but the basic idea is there.
- If you don't need the '--downloadonly' you can skip the last rpm command.
- For those lacking the '--downloadonly' option, you can have it here:
How do I use yum to download a package without installing it?
Cheers.
Thanks, but I have installed it with
ReplyDeleteyum localinstall ImageMagick-6.7.9-10.x86_64.rpm ImageMagick-devel-6.7.9-10.x86_64.rpm
True and thanks, just remember this will also require --nogpgcheck to work correctly.
ReplyDelete