Its possible. The data structure for every OS is the same, AFAIK.
Just install the client as how you would usually do. You can either copy the entire data directory to the default data directory or to a different directory. For OS with UI, the client will prompt you to select a data directory if it doesn't detect it in the default directory. You can always point your client to the directory in the conf file or at startup.