[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cross-apt



> Is there a reasonable way under Debian to do cross-apts?  A friend of
> mine has a laptop with a winmodem, (so no PPP available, network card
> is a pc-card), but he wants to play.  His main system is a Debian
> unstable, so I'm hoping there's a way to do apt-get --root=/hurd
> --system=hurd-i386 install foo

Actually, dpkg has --root, --admindir, and --instdir flags, and you can have apt pass them to dpkg by
specifying it in your apt.conf file.

This might do it (taken from /usr/share/doc/apt/examples):


======/etc/hurd-apt.conf=========
APT
{
  Architecture "hurd-i386";

  // Options for apt-get
  Get
  {
      Download-Only "false";
  };  
};  

// Options for the downloading routines
Acquire {
  Retries "0";
};  
  
// Things that effect the APT dselect method
DSelect
{
  Clean "auto";   // always|auto|prompt|never
};  

DPkg
{
  // Probably don't want to use force-downgrade..
  Options {"--force-overwrite --instdir=/hurd";}
}
====================================



And a script to wrap it up:


==========hurd-apt-get===================
#!/bin/sh

APT_CONFIG=/etc/hurd-apt.conf
export APT_CONFIG
apt-get $*
=========================================



Let me know if it works. I'm curious...

-- Ian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ian Duggan                    ian@ianduggan.net
                              http://www.ianduggan.net



Reply to: