hpijs - HP-developed HP Inkjet drivers for Ghostscript ChangeLog

HOWTO


# HPIJS 2.1.4
# ===========
# If you're interested in upgrading HPIJS, you should go to the HPLIP howto
# instead.  HP bundles HPIJS as part of HPLIP.  If you install HPLIP/HPIJS,
# you should probably uninstall this version first to ensure that there are
# no old files lying around unused.  Skip down to the bottom for removal
# instructions.

# Slackware 9.0's 'hpijs' package includes version 1.3.1, 9.1's includes
# 1.4.1, 10.0's includes 1.6, 10.1's and 10.2's include 1.7, and 11.0's
# includes 2.1.4

# Prerequisites:
# gawk
# libjpeg
# grep

# This howto used to be part of my cups howto which put tarballs into
# ~/installed/cups/, if you installed an older version from it, run this:
test -d ~/installed/cups && mv ~/installed/cups/hpijs-* ~/installed/
test -d ~/src/cups/hpijs-* && mv ~/src/cups/hpijs-* ~/src/

cd
test -f installed/hpijs-2.1.4.tar.gz &&
mv installed/hpijs-2.1.4.tar.gz .
test ! -f hpijs-2.1.4.tar.gz &&
wget http://download.sf.net/hpinkjet/hpijs-2.1.4.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "hpijs-*" -exec rm -r {} \;
tar xzvf ~/hpijs-2.1.4.tar.gz
cd hpijs-2.1.4
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make

# Become root to install it
su

# This will remove any previous versions that were installed under the
# /usr/local prefix:
( cd /usr/local/bin ; rm -f foomatic-rip hpijs )
find /usr/local/share/doc -maxdepth 1 -type d -name "hpijs-*" \
-exec rm -r {} \;
test -d /usr/local/share/ppd/HP &&
rm -r /usr/local/share/ppd/HP

test -x /sbin/removepkg && /sbin/removepkg hpijs
find /usr/doc -maxdepth 1 -type d -name "hpijs-*" -exec rm -r {} \;
make install

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/hpijs-*.tar.*
mv hpijs-2.1.4.tar.gz installed/


# If you ever want to uninstall hpijs, this should do it:
su
for pfx in /usr /usr/local; do
  ( cd ${pfx}/bin ; rm -f foomatic-rip hpijs )
  find ${pfx}/doc ${pfx}/share/doc -maxdepth 1 -type d -name "hpijs-*" \
   -exec rm -r {} \; 2> /dev/null
  test -d ${pfx}/share/ppd/HP && rm -r ${pfx}/share/ppd/HP
  rm -f ${pfx}/lib/cups/filter/foomatic-rip \
   ${pfx}/share/cups/model/foomatic-ppds
done
exit
find ~/src -maxdepth 1 -type d -name "hpijs-*" -exec rm -r {} \;
rm -f ~/installed/hpijs-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2006-10-26 9:46pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]