Calibre allows you to control the placement of all its files by a combination of settings in Environment Variables and command line parameters.
Attached is the batch file I use for this in Windows. It is easy enough to see how it works and should be simple to adapt the syntax to other OS such as Linux or Mac OS. It can also be used to run calibre off a USB stick or other portable media.
|