How can I remove "ImageMagick" completely?

26,358

Run 'make uninstall' from the ImageMagick source folder, it includes an uninstall target.

wget imagemagick.org/download/ImageMagick.tar.gz
tar zxvf ImageMagick.tar.gz
cd ImageMagick-6.8.2-10
./configure
make uninstall

Share:
26,358

Related videos on Youtube

HUSTEN
Author by

HUSTEN

Updated on September 18, 2022

Comments

  • HUSTEN
    HUSTEN over 1 year

    I think I accidently did install 2 ImageMagicks to my CentOS 5.8 before.

    Version 6.2.8 was removed by

    yum erase ImageMagick
    

    However, it still shows this when I typed $convert -version

    Version: ImageMagick 6.8.2-9 2013-02-11 Q16 http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
    Features: DPC OpenMP
    Delegates: jng jpeg png ps xml zlib
    

    which convert shows this

    /usr/local/bin/convert
    

    This one. I probably installed from the source.
    How can I remove this?

    • Justin
      Justin over 11 years
      What does 'rpm -qf /usr/local/bin/convert' show?
    • HUSTEN
      HUSTEN over 11 years
      @Justin Thanks it showed file /usr/local/bin/convert is not owned by any package
    • HUSTEN
      HUSTEN over 11 years
      I might have installed it by wget and make => make install
    • Justin
      Justin over 11 years
      Just downloaded the ImageMagick source, and you're lucky! it comes with an uninstall target. just run 'make uninstall' from your build folder and it will remove it. This is not common and is the reason to prefer building/using packages over building from source; .
    • HUSTEN
      HUSTEN over 11 years
      @Justin Thanks for reply. what folder shoud I go? cd /usr/local/bin/convert and execute make uninstall?
    • Justin
      Justin over 11 years
      Wherever you downloaded the source and originally ran './configure && make && make install'. Or just download it again and run './configure && make uninstall'.
    • HUSTEN
      HUSTEN over 11 years
      @Justin The problem is that I cannot find where the folder is. and I don't know where I downloaded that file from:(
    • Justin
      Justin over 11 years
      Try imagemagick.org/download/ImageMagick.tar.gz It's the one from their site that I downloaded. It's 6.8.2.10 instead of 6.8.2-9, but it should do the trick.
    • Justin
      Justin over 11 years
      yep, 'wget imagemagick.org/download/ImageMagick.tar.gz' 'tar zxvf ImageMagick.tar.gz' 'cd ImageMagick-6.8.2-10' './configure' 'make uninstall'
    • HUSTEN
      HUSTEN over 11 years
      Thanks:) please put that in answer so that I can vote it up