Can-ned Food |
10-25-2016 06:32 PM |
Changing apt and dpkg paths with apt.conf via $APT_CONFIG
Soon I'll be able to start testing this myself, but for now I thought that I'd ask for some advice.
Does anyone have better documentation for apt.conf than its manpage?
Atrocious read, that is.
It is possible that apt can't do what I was planning. I wanted dpkg to operate in one directory below '/.', while apt and dpkg have their state and parameter data somewhere else: similar to using --admindir= and --instdir=.
If anyone would help me with the difference between a value for DIR and DIR::ROOTDIR, and whether that gets passed to dpkg, such information would be welcome when I begin testing in earnest.
Here's the apt.conf
Code:
// format mostly taken from usr/share/doc/apt/examples/configure-index.gz
Dir "/inst/debian/."
{
RootDir "/.";
State "/home/dpkg/apt/var/."
{
Lists "lists/.";
Status "/home/dpkg/var/status";
Extended_states "extended_states";
Cdroms "cdroms.list";
};
Cache "/home/dpkg/apt/."
{
// edit most of this
Archives "depo/.";
Backup "bkp/";
// etc/cron.daily/apt
SrcPkgCache "srcpkgcache.bin";
PkgCache "pkgcache.bin";
};
Etc "/home/param/apt/."
// VITAL
{
Main "apt.conf";
// datum housing this must be set by envar APT_CONFIG
NetRC "auth.conf";
Parts "apt.conf.d/";
Preferences "preferences";
PreferencesParts "preferences.d/";
SourceList "sources.list";
SourceParts "sources.list.d/";
VendorList "vendors.list";
VendorParts "vendors.list.d/";
Trusted "trusted.gpg";
TrustedParts "trusted.gpg.d/";
};
Bin
{
methods "./usr/lib/apt/methods/";
gzip "./bin/gzip";
gpg "./usr/bin/gpgv";
dpkg "./usr/bin/dpkg";
dpkg-source "./usr/bin/dpkg-source";
dpkg-buildpackage "./usr/bin/dpkg-buildpackage";
apt-get "./usr/bin/apt-get";
apt-cache "./usr/bin/apt-cache";
};
Log "/rmrk/apt/."
{
Terminal "term";
History "/home/dpkg/apt/history";
};
Media
{
MountPath "/lawn/apt/.";
};
};
And, here's my error:
Code:
E: The method driver ./usr/lib/apt/methods/ftp could not be found.
E: The method driver ./usr/lib/apt/methods/http could not be found.
E: The method driver ./usr/lib/apt/methods/file could not be found.
E: The method driver ./usr/lib/apt/methods/ftp could not be found.
|