I would like to be able to run repoclosure as a non-root user on lots of repositories, providing customised yum configuration files for each session. Currently the cachedir setting in these configuration files is ignored for non-root users, and a directory under /var/tmp is created and used instead. This leads to several gigabytes of data being cached there and tending to fill up my /var partition.
A workaround for this would be to move the cache directory from /var/tmp and replace it with a symlink to the target directory, which would work for a while since yum uses the same directory name until it gets removed, in which case it picks a new, unpredictable name.
Why is the cachedir directive not honored for non-root users, and can there please be provided some means of specifying this without having to resort to an ugly symlink hack?