#1748
petrockblog
Keymaster

You can have a look at the sources of the RetroPie Setup Script, e.g., at https://github.com/retropie/RetroPie-Setup/blob/master/retropie_setup.sh#L801 to give you an idea about hat might be needed to install a new core.