I have scripts to setup virtual machine images, where emacs packages are installed for the root account. Currently, I manually copy them to the appropriate site-lisp directory, i.e. one of those defined by package-directory-list -- either /usr/share/emacs/24.3/site-lisp/elpa or /usr/share/emacs/site-lisp/elpa.
While the above approach works for making installed packages accessible to normal user account, I would prefer to avoid hand editing the packages directory.
Is there a way to automate this process in package.el
itself ?