Markus Kolb wrote: > I want to use APT (apt-get and apt-cache) for some repository games as a > backend-tool. Of course as non-root user. > Is there a possibility to tell apt-get and apt-cache to not look for > status-file and lock-file in /var/lib/dpkg/ instead in some other > directory?
Yes, the documentation explains how. Here is an example: APT_GET=apt-get --assume-yes \ -o Dir::Etc::sourcelist=$(CWD)$(SOURCES_LIST) \ -o Dir::State=$(CWD)$(APTDIR)/state \ -o Debug::NoLocking=true \ -o Dir::Cache=$(CWD)$(APTDIR)/cache -- see shy jo
pgp00000.pgp
Description: PGP signature