[ic] Interchange on Debian

Henrik Holmboe elements at hack.se
Mon Oct 18 20:02:07 EDT 2004


++ 12/10/04 10:43 +0100 - Jamie Neil:
[...]
>Can anyone give me some best practice tips on using and managing 
>interchange in a Debian environment?

Hello list (my first post),

Ive been using Debian for a while, but somewhat new to Interchange
(still putting the last bits in for the first production
installation). I will share how I do this on my demo server. Im
running with threaded Perl on that machine for now, which of course
the production server will not.

Ok, here goes.

Put this in /etc/apt/preferences:

   Package: *
   Pin: release o=Debian,a=stable
   Pin-Priority: 400

   Package: *
   Pin: release o=Debian,a=testing
   Pin-Priority: 900

   Package: *
   Pin: release o=Debian,a=unstable
   Pin-Priority: 300

   Package: *
   Pin: release o=Debian
   Pin-Priority: -1

   Package: *
   Pin: origin people.debian.org
   Pin-Priority: 1001

Modify to your taste. As you can see here I have pinned most priority
to testing (Sarge). Read more on pinning on
<http://www.argon.org/~roderick/apt-pinning.html>.

Put this in apt.conf to increase the space where apt stores its info
on repositories:

   APT::Cache-Limit "12582912";

Then add all three distributions (stable, testing and untable) to the
sources.list:

   #
   ## STABLE
   #
   # HTTP
   deb http://ftp.du.se/debian/ stable main non-free contrib
   deb-src http://ftp.du.se/debian/ stable main non-free contrib
   deb http://ftp.du.se/debian-non-US stable/non-US main contrib non-free
   deb-src http://ftp.du.se/debian-non-US stable/non-US main contrib non-free
   # FTP
   #deb ftp://ftp.du.se/debian/ stable main non-free contrib
   #deb-src ftp://ftp.du.se/debian/ stable main non-free contrib
   #deb http://ftp.du.se/debian-non-US stable/non-US main contrib non-free
   #deb-src http://ftp.du.se/debian-non-US stable/non-US main contrib non-free

   #
   ## TESTING
   #
   # HTTP
   deb http://ftp.du.se/debian/ testing main non-free contrib
   deb-src http://ftp.du.se/debian/ testing main non-free contrib
   deb http://ftp.du.se/debian-non-US testing/non-US main contrib non-free
   deb-src http://ftp.du.se/debian-non-US testing/non-US main contrib non-free
   # FTP
   #deb ftp://ftp.du.se/debian/ testing main non-free contrib
   #deb-src ftp://ftp.du.se/debian/ testing main non-free contrib
   #deb http://ftp.du.se/debian-non-US testing/non-US main contrib non-free
   #deb-src http://ftp.du.se/debian-non-US testing/non-US main contrib non-free

   #
   ## UNSTABLE
   #
   # HTTP
   deb http://ftp.du.se/debian unstable main non-free contrib
   deb-src http://ftp.du.se/debian unstable main non-free contrib
   deb http://ftp.du.se/debian-non-US unstable/non-US main non-free contrib
   deb-src http://ftp.du.se/debian-non-US unstable/non-US main non-free contrib
   # FTP
   #deb ftp://ftp.du.se/debian unstable main non-free contrib
   #deb-src ftp://ftp.du.se/debian unstable main non-free contrib
   #deb ftp://ftp.du.se/debian-non-US unstable/non-US main non-free contrib
   #deb-src ftp://ftp.du.se/debian-non-US unstable/non-US main non-free contrib

   #
   ## SECURITY
   #
   #deb http://security.debian.org/ stable/updates main contrib non-free
   deb http://security.debian.org/ testing/updates main contrib non-free

After this step you run 'apt-get update'. After this you should be
able to do:

 apt-get install interchange/unstable \
 interchange-ui/unstable \
 interchange-cat-foundation/unstable

I didnt run this to verify that it will install all dependencies
(since you pin to testing), but if it complains, just add it to the
list.

You should really use 'aptitude' for this. It will let you install any
of the versions in either stable, testing och unstable. And it will
help you with dependencies a little better than manually adding them
to the list of 'apt-get install'.

Hope this helps.

.h

-- 
Henrik Holmboe, Stockholm, Sweden
<http://henrik.holmboe.se/contact/>


More information about the interchange-users mailing list