Advertisement
metalx1000

Manually install RetroArch Cores on Linux

Nov 28th, 2023 (edited)
1,068
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.88 KB | None | 0 0
  1. #list cores in repose
  2. aptitude search libretro
  3.  
  4. #install wanted cores
  5. sudo apt install libretro-snes9x libretro-bsnes-mercury-balanced libretro-nestopia
  6.  
  7. #manually download and install ROMS not in repose
  8. #!/bin/bash                                                                                                                              
  9. core_dir="/usr/lib/x86_64-linux-gnu/libretro/"
  10. sudo mkdir -p $core_dir
  11. sudo chmod 777 $core_dir
  12.  
  13. list="$(wget -qO- "https://buildbot.libretro.com/nightly/linux/x86_64/latest/")"
  14. list="$(echo $list|tr '"' "\n"|grep '.zip'|grep -v class)"
  15. list="$(echo $list|tr ' ' "\n"|while read f;do basename $f;done)"
  16. core="$(echo $list|tr ' ' "\n"|fzf --prompt "Select a Core: ")"
  17. [[ $core ]] || exit
  18.  
  19. url="https://buildbot.libretro.com/nightly/linux/x86_64/latest/$core"
  20. wget "$url" -cO /tmp/$core
  21. unzip /tmp/$core -d $core_dir
  22. chmod +x $core_dir/$core
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement