Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-23-2011, 11:14 AM
|
#1
|
LQ Newbie
Registered: May 2011
Posts: 4
Rep: 
|
Having problems removing ImageMagick (CentOS)
Hi, first post here
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.
Last edited by klauser; 05-23-2011 at 11:15 AM.
|
|
|
05-23-2011, 11:33 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Rpm package names are case sensitive and ImageMagick has an unusually dumb use of case in its name.
|
|
|
05-23-2011, 12:59 PM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
.. And you can use 'grep' to check your spelling ( Upper / lower case),
like : rpm -qa | grep -i image : The reply is 'ImageMagick'
And : Welcome to LQ.
..
|
|
|
05-23-2011, 01:16 PM
|
#4
|
LQ Newbie
Registered: May 2011
Posts: 4
Original Poster
Rep: 
|
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.
|
|
|
05-23-2011, 03:25 PM
|
#5
|
Member
Registered: Jan 2010
Posts: 418
Rep:
|
do this to investigate:
first find where your imagemagick files are:
then find which rpm they come from. For example:
Code:
rpm -qf /usr/bin/convert
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
|
|
|
05-24-2011, 08:02 AM
|
#6
|
LQ Newbie
Registered: May 2011
Posts: 4
Original Poster
Rep: 
|
Ok I tried what 16pide mentioned, but it returns
Code:
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.
|
|
|
05-24-2011, 08:22 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
05-24-2011, 09:04 AM
|
#8
|
LQ Newbie
Registered: May 2011
Posts: 4
Original Poster
Rep: 
|
Quote:
Originally Posted by acid_kewpie
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.
|
|
|
All times are GMT -5. The time now is 05:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|