LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-23-2011, 11:14 AM   #1
klauser
LQ Newbie
 
Registered: May 2011
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 05-23-2011, 11:33 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Rpm package names are case sensitive and ImageMagick has an unusually dumb use of case in its name.
 
Old 05-23-2011, 12:59 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
.. 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.

..
 
Old 05-23-2011, 01:16 PM   #4
klauser
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-23-2011, 03:25 PM   #5
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
do this to investigate:

first find where your imagemagick files are:

Code:
which convert
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
 
Old 05-24-2011, 08:02 AM   #6
klauser
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-24-2011, 08:22 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-24-2011, 09:04 AM   #8
klauser
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install ImageMagick-6.5.1-2 & ImageMagick-devel-6.5.1.2 in red hat mokkai Linux - Enterprise 4 04-16-2009 12:04 PM
Problems on removing Cinelerra evandropig Linux - Software 3 05-21-2008 08:03 AM
Problems removing ubuntu cha0sAD Linux - Newbie 5 03-10-2007 05:51 AM
ImageMagick problems cucolin@ Linux - Software 7 01-23-2007 08:18 AM
problems with imagemagick in php... markw8500 Linux - Software 11 01-09-2007 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration