Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Recently had to learn how to administer a CentOS 5 server, installed ImageMagick Q16 6.9-4 as one of our services makes heavy use of it. I am noticing that the Q16 version is pushing the server to its limits quite a lot. I have Q8 version installed onto my ubunutu laptop, and running the same test scripts seems to indicate that the Q8 version would work faster for our needs.
I had to install IM by building from the source, and am now trying to remove the Q16 version and replace it with Q8 version. I have tried removing via yum with no success.
Doing a grep on the rpm list with
Code:
rpm -qa | grep imagemagick
doesnt return anything which would of been helpful with manually removing the packages and dependencies with rpm -e.
I am quite new to linux/centos etc... so any help would be great.
Ok thanks for the quick replies. Tried to match the case of the version of ImageMagick, grep returned nothing. Also tried to use
Code:
rpm -qa | grep -i image
but it didnt return anything.
I am now really confused. ImageMagick works fine from the command line and works ok using the php extension for it. I thought all packages that are installed are managed by RPM? I built IM from source, have I maybe wrongly configured before installing?
I removed the source files with the 'make' files in the directory. I read somewhere that I should try 'make uninstall' or something along those lines. But I have deleted those files, so I'm still stuck with an unwanted version of IM.
This will tell you which rpm installed the imagemagick executables. Then you can decide to remove that rpm.
If rpm -qf does not tell you any package name, then it means the commands were manually installed (installed from a tar file, or installed from source.
In any case, if rpm was not used to install them, then it can't be used to remove them.
Last edited by 16pide; 05-23-2011 at 03:26 PM.
Reason: typo again
file /usr/local/bin/convert is not owned by any package
so I think I'm going to have to remove it manually. Oh joy. Ok, anyone got any tips on doing this? I have never had to do something like this on unix. I built from sources, so does this place files all over the place on the system, or does it just make the directories with the bin files, configs etc...
Wish I had known about this before installing IM Q16. Lesson learned.
if you still have the directory you built and installed it from, go back there and run "make uninstall" and that should do the trick. If you've not got it, you can easily rebuild, reinstall and then remove it immediately.
if you still have the directory you built and installed it from, go back there and run "make uninstall" and that should do the trick. If you've not got it, you can easily rebuild, reinstall and then remove it immediately.
Thanks, I just downloaded the same tar.gz file containing the sources, makefiles. Then configured, uninstalled, reconfigured and installed. It was so easy. Really loving the linux way of doing things.
I have one more small issue that I thought I would check with you guys. I am using the Imagick php extension. I used
Code:
pecl uninstall imagick
which stated that the uninstallation was successful. But php.info() still shows the imagick extension. I tried to install imagick again and it states that it is using the Q16 version of ImageMagick, but I now have Q8 installed. Do I need to delete the php extension manually and re-install imagick?
And Thanks for the useful replies at breakneck speed. Never had such responsive replies on a forum before. So I'm here to stay now. Love this place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.