apt usage with local debian mirror
I am not on the list, please keep me in CC.
I'm using apt in a way that works for me. I have a local mirror and apt was
setup to use /debian/apt-<arch> for various apt files (like sources.list,
the /var/lib/apt/lists, /var/cache/apt, ...). This allows me to never need
to do apt-get update.
The question I have is on the list dir (Dir::State::lists).
I have created links like this:
_debian_dists_sid_Release -> /debian/dists/sid/Release
My sources list is:
deb file:/debian sid main non-free contrib
deb-src file:/debian sid main non-free contrib
My question is, is it possible for apt to use another name. For instance,
instead of apt using _debian_dists_sid_Release, use _dists_sid_Release or
just _sid_Release.
I checked the code, but I don't understand c++ well enough to know what it
was doing.
If my understanding is correct, apt wants to use(create) a name that is
uniq. This would mean that names like _dists_sid_Release or _sid_Release
would no longer be uniq. In my case, this would work fine as I have a
seperate apt directory for each arch and thus would be uniq for me.
The point of asking this is to beable to move /debian to another
location/mount point and it all just work.
Maybe another question would be, can relative paths be used in sources.list.
This would fix the problem for me as well.
Another thought would be to never use the lists directory since the files
are already in the tree. Apt already does this for packages.
If anyone is interested in how I have set this up, feel free to ask.
Reply to: