Difference between revisions of "Upgrading Imagemagick to a current version"

From Biowikifarm Metawiki
Jump to: navigation, search
m (Created page with 'Following [http://serverfault.com/questions/154598/how-do-i-install-imagemagick-6-5-6-on-debian-lenny How do I install ImageMagick 6.5.6 on Debian Lenny?] it is possible to backp...')
 
m (added Category:Upgrade using HotCat)
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
<source lang="bash">
 
<source lang="bash">
sudo nano /etc/apt/sources.list
+
sudo nano /etc/apt/sources.list
  # comment for backporting imagemagick to imagemagick-6.6.0.4
+
## edit the following:
  deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free
+
# comment for backporting imagemagick to imagemagick-6.6.0.4
</source>
+
deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free
----
+
 
<source lang="bash">
+
# check imagemagick version number:
# Start the building process:
+
  convert --version
sudo apt-get update
+
# Start the building process (default configure options):
sudo apt-get build-dep imagemagick # build dependencies
+
  sudo apt-get update
 +
  sudo apt-get build-dep imagemagick # build dependencies
 
# Change to a directory you'll be using for building
 
# Change to a directory you'll be using for building
cd ~/temp/ # go to a temporary home directory
+
  mkdir ~/temp/
 +
  cd ~/temp/ # go to a temporary directory in your home
 
# For the next part you can be a regular user.
 
# For the next part you can be a regular user.
apt-get source imagemagick # fetch all current header source files to enable building from source
+
  apt-get source imagemagick # fetch all current header source files to enable building from source
dir -all # list files
+
  cd imagemagick-6.6.0.4/
cd imagemagick-6.6.0.4/
+
  fakeroot debian/rules binary # compile and build the stuff → creates ../*.dep
fakeroot debian/rules binary # compile and build the stuff → *.dep
+
 
# last message looks like:
 
# last message looks like:
 
# dpkg-deb: building package `imagemagick' in `../imagemagick_6.6.0.4-2.2_i386.deb'.
 
# dpkg-deb: building package `imagemagick' in `../imagemagick_6.6.0.4-2.2_i386.deb'.
 
# ...
 
# ...
sudo dpkg -i *.deb # install debian packages with the package manager
+
  sudo dpkg -i *.deb # install debian packages with the package manager
 
# remove temporary data
 
# remove temporary data
cd ~/temp/
+
  cd ~/temp/
rm -r imagemagick-6.6.0.4*  
+
  sudo rm -r imagemagick-6.6.0.4*  
 +
  sudo rm -r imagemagick_6.6.0.4*
 +
# check imagemagick version number:
 +
  convert
 
</source>
 
</source>
  
Final note: «Enjoy your new packages, but remember to check for security releases periodically and rebuild as needed, as you are now outside of Debian's security release framework. You may want to consider subscribing to the debian-security-announce mailing list.»
+
It's also possible to compile with different ./configure options than the default:
 +
<blockquote>
 +
<source lang="bash">
 +
# ... as above
 +
  cd ~/temp/ # go to a temporary directory in your home
 +
# For the next part you can be a regular user.
 +
  apt-get source imagemagick # fetch all current header source files to enable building from source
 +
  cd imagemagick-6.6.0.4/debian
 +
  nano rules # add your configure option in that file
 +
  cd ~/temp/imagemagick-6.6.0.4/
 +
# proceed as above
 +
  fakeroot debian/rules binary # compile and build the stuff → creates ../*.dep
 +
# ...
 +
</source>
 +
 
 +
</blockquote>
 +
 
 +
Final note (cited from instructions referenced above): «Enjoy your new packages, but remember to check for security releases periodically and rebuild as needed, as you are now outside of Debian's security release framework. You may want to consider subscribing to the Debian-security-announce mailing list.»
 +
 
 +
 
 +
 
 +
<!--
 +
----
 +
NOTE: "sudo apt-get build-dep imagemagick" installs: build-essential chrpath g++ g++-4.3 libatk1.0-dev libbz2-dev libcairo2-dev libdirectfb-dev libdjvulibre-dev libexif-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libglib2.0-dev libgraphviz-dev libgtk2.0-dev libice-dev libilmbase-dev libjasper-dev libjpeg62-dev liblcms1-dev liblqr-1-0 liblqr-1-0-dev libltdl-dev libltdl7 libmpeg3-1 libmpeg3-dev libopenexr-dev libopenexr6 libpango1.0-dev libperl-dev libpixman-1-dev libpng12-dev libpthread-stubs0 libpthread-stubs0-dev librsvg2-dev libsm-dev libstdc++6-4.3-dev libsysfs-dev libtiff4-dev libtiffxx0c2 libwmf-dev libx11-dev libxau-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-xlib0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-dev libxml2-utils libxrandr-dev libxrender-dev libxt-dev pkg-config x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev xtrans-dev
 +
-->
 +
 
 
[[Category:Software documentation]]
 
[[Category:Software documentation]]
 +
[[Category:Upgrade]]

Latest revision as of 10:20, 2 December 2015

Following How do I install ImageMagick 6.5.6 on Debian Lenny? it is possible to backport a current version of Imagemagick into the debian system. First make sure to add the source repository:

 sudo nano /etc/apt/sources.list
## edit the following:
# comment for backporting imagemagick to imagemagick-6.6.0.4
 deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

# check imagemagick version number:
  convert --version
# Start the building process (default configure options):
  sudo apt-get update
  sudo apt-get build-dep imagemagick # build dependencies
# Change to a directory you'll be using for building
  mkdir ~/temp/ 
  cd ~/temp/ # go to a temporary directory in your home
# For the next part you can be a regular user.
  apt-get source imagemagick # fetch all current header source files to enable building from source
  cd imagemagick-6.6.0.4/
  fakeroot debian/rules binary # compile and build the stuff → creates ../*.dep
# last message looks like:
# dpkg-deb: building package `imagemagick' in `../imagemagick_6.6.0.4-2.2_i386.deb'.
# ...
  sudo dpkg -i *.deb # install debian packages with the package manager
# remove temporary data
  cd ~/temp/
  sudo rm -r imagemagick-6.6.0.4* 
  sudo rm -r imagemagick_6.6.0.4* 
# check imagemagick version number:
  convert

It's also possible to compile with different ./configure options than the default:

# ... as above
  cd ~/temp/ # go to a temporary directory in your home
# For the next part you can be a regular user.
  apt-get source imagemagick # fetch all current header source files to enable building from source
  cd imagemagick-6.6.0.4/debian
  nano rules # add your configure option in that file
  cd ~/temp/imagemagick-6.6.0.4/
# proceed as above
  fakeroot debian/rules binary # compile and build the stuff → creates ../*.dep
# ...

Final note (cited from instructions referenced above): «Enjoy your new packages, but remember to check for security releases periodically and rebuild as needed, as you are now outside of Debian's security release framework. You may want to consider subscribing to the Debian-security-announce mailing list.»