Quote:
Originally Posted by evo2
Hi, apt-cache doesn't cache anything. It queries the cache maintained by apt.
|
Thanks for the clarification
Quote:
Originally Posted by ondoho
i'm pretty sure apt won't know what "~" signifies. you probably need to write out /home/young_jedi/some/other/cache. then there's also the question of apt having permission to write to that directory.
|
I tried it both ways (full path and ~) and im running as root, but apt-cache is just not recognizing it.. I think the more correct syntax would actually be
Code:
apt-cache -o Dir::Cache::Archives='/root/cache/'
... But there's nothing on the internet that describes how to actually use the -o option....
Quote:
Originally Posted by descendant_command
Or, leave apt alone and bind-mount some/other/dir onto /var/cache/apt/archive
|
I could also use a symlink but I dont want to replicate the packages, I want to leave the packages in '/var/cache/apt/archives' alone, but dynamically alter the cache location for certain packages I download...
@all I'm doing this a part of a shell script so modifying a configuration file would not be as "robust" as using -o flag to set an arbitrary configuration option..