Go to TogaWare.com Home Page.
GNU/Linux Desktop Survival Guide
by Graham Williams
Google

Updating From New Distribution


Suppose we have a new wajig-0.1.2.tar.gz and want to package this up. Ensure this tar file is in the root directory, cd into the old source directory, and ask Debian to update:



  $ cd wajig-0.1.1
  $ uupdate -u wajig-0.1.2.tar.gz

The updated source directory is ../wajig-0.1.2. We simply go there and build the Debian package and install it in our archive:



  $ cd ../wajig-0.1.2
  $ dpkg-buildpackage -rfakeroot
  $ cd .. 
  $ lintian -i wajig_0.1.2-1_i386.changes
  $ cp wajig_0.1.2* /var/www/debian/
  $ cd /var/www/debian/
  $ chmod go+r wajig_0.1.2*
  $ apt-ftparchive packages . > Packages
  $ apt-ftparchive sources  . > Sources
  $ gzip -c Packages > Packages.gz
  $ gzip -c Sources  > Sources.gz

Then install the new package with:



  $ apt-get update
  $ apt-get install wajig

Of course, if you are already using wajig this becomes:



  $ wajig update
  $ wajig install wajig


Copyright © 1995-2006 [email protected]
Contribue and access the PDF Version