Raspberry Pi 5 RetroPie Build: Install It on Pi OS Lite With the Setup Script

A Raspberry Pi 5 RetroPie build is 12 steps on Raspberry Pi OS Lite 64-bit with the RetroPie setup script, which raspberry.tips says has supported the Pi 5 since October 2023. The board has also become dearer: the lifecycle table at raspberry.tips, checked on 12 November 2026 (data dated 7 November 2026), lists the 4GB Pi 5 at $110, against the $70 in Raspberry Pi’s announcement of its memory-driven price rises, whose prices date from 1 December 2025. If you would rather flash a finished image than compile software, Batocera and Recalbox both list a Pi 5 image and, according to raspberry.tips, support GameCube and Wii officially.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Memory-driven price rises, production until 2036 and what a kit needs

In that announcement Raspberry Pi attributes the rises to LPDDR4 memory costs and describes the pressure on memory prices as “painful but ultimately temporary”, and in a separate post on its price rises says it looks forward to “rolling back our price increases when memory costs fall once again”. How much falls back, and when, depends on memory costs. The same raspberry.tips lifecycle table lists the Pi 5 as produced until at least January 2036, so the board itself is not going away.

raspberry.tips prices the items a kit needs in euros: about €16 for the official 27W supply, about €23 for a SanDisk Extreme A2 card and from €13 for a case with cooling. Those are not converted to dollars; they show what belongs in a kit.

On RAM, raspberry.tips recommends a Pi 5 with 4GB or 8GB for a RetroPie build and treats 4GB as the minimum for GameCube and Wii, so the 4GB board is the default purchase; our Arduino vs Raspberry Pi comparison lists board prices by memory size.

RetroPie runs on Raspberry Pi OS Lite on a Pi 5, and Batocera or Recalbox is quicker

A community Pi 5 setup guide on GitHub describes the latest RetroPie image, at the time it was written, as version 4.8, based on Raspbian with Debian 10, from 14 March 2022, which predates the board. PiShop’s quick-start guide describes the manual route: install on Raspberry Pi OS, with the 64-bit version strongly recommended. raspberry.tips advises Raspberry Pi OS Lite, the version without a desktop, for performance.

Your choice of OS release decides how long the install takes. According to raspberry.tips, RetroPie only provides prebuilt binaries up to Raspberry Pi OS 12; on the current release the script builds every package from source, which takes “considerably longer” than installing prebuilt packages. If you want binaries, flash a Raspberry Pi OS 12 Lite 64-bit image and check that Raspberry Pi Imager offers it. Otherwise plan for the source build and run it over SSH, as step 5 shows.

Raspians reports that, as of October 2026, Batocera, Recalbox and Lakka each list a Pi 5 image on their download pages. The difference is what you end up with: RetroPie builds on Raspberry Pi OS, so you keep a normal Linux system, while the others ship as complete systems of their own. Choose RetroPie for SSH access and Linux-level control. Choose Batocera or Recalbox for flash-and-play, and for GameCube and Wii, which raspberry.tips lists as official on both but experimental only on RetroPie through Dolphin. The setup script knowing the Pi 5 is, in Raspians’ words, “not a promise that every emulator runs well”. Our Batocera, RetroPie and Recalbox comparison sets the three side by side.

For a pocket handheld rather than a TV console, SpecPicks calls a Pi 4 or a CM4-based kit the practical default, because the Pi 5 brings thermal and battery penalties in a small enclosure. Our Pokémon on Raspberry Pi 5 RetroPie guide covers the Game Boy, GBA and DS cores for that kind of build.

What a Pi 5 plays under RetroPie, and where the sources disagree

SystemStatus on a Pi 5Source
NES, SNES, Game Boy, Genesis, PS1Run perfectlyraspberry.tips
N64, Dreamcast, PSPRun very wellraspberry.tips
Sega SaturnVery slow (lr-yabause core)raspberry.tips
PlayStation 2raspberry.tips’ table says “Not supported”; Tom’s Hardware says the CPU is fast enough for PS2 emulationraspberry.tips; Tom’s Hardware
GameCube, WiiExperimental only on RetroPie (Dolphin); listed as supported on Batocera and Recalboxraspberry.tips

The PS2 row is a genuine disagreement. Tom’s Hardware, in its Pi 5 review, writes that a quad-core 2.4GHz Arm CPU “is already fast enough for PS2 emulation”, which is a statement about the processor, while the raspberry.tips table marks PS2 “Not supported”. The two sources conflict on PS2, and raspberry.tips rates Saturn very slow, so neither should drive a purchase. If GameCube or Wii matters, that points to Batocera or Recalbox.

On hardware, SpecPicks’ Pi 5 review lists a Broadcom BCM2712 (quad-core Cortex-A76 at 2.4GHz), against the BCM2711 (quad-core Cortex-A72) in the Pi 4, and the Pi 5 has a PCIe interface for NVMe storage. SpecPicks reports that the Pi 5 is 2-3x faster than the Pi 4 across mixed workloads; that is a general figure, not a game result.

Steps 1 to 4: board, storage, power and cooling, and flashing Pi OS Lite

Step 1: Buy the board and a Micro-HDMI cable

Buy the 4GB board unless you have a reason for 8GB, per the RAM advice above. The Pi 5 has two Micro-HDMI ports, not standard HDMI, so raspberry.tips says you need a Micro-HDMI to HDMI cable or you cannot connect a monitor.

Step 2: Choose microSD or NVMe

raspberry.tips asks for a microSD card of at least 32GB, rated Class 10 and A2, or an NVMe SSD on an M.2 HAT. NVMe on an M.2 HAT+ reaches up to 500MB/s, which raspberry.tips puts at about five times the best microSD card, with shorter loading times. If this is your first Pi build, start with the card and add NVMe later in step 7.

Step 3: Assemble with the right supply and cooler

The Pi 5 needs a USB-C supply of at least 5A (25W); raspberry.tips calls the official 27W unit the safe choice. Cheap supplies without USB Power Delivery deliver only 5V/0.9A in fallback mode, and the board then runs in power-saving mode and shows the lightning symbol. SpecPicks adds that a 3A supply limits USB peripherals to 600 mA, which can cause problems with bus-powered SSDs.

Fit the official Active Cooler, a heatsink with a 30mm fan that plugs into the 4-pin connector on the board. raspberry.tips says that without cooling the Pi 5 throttles even under light load, and that the lid must be removed on the official case when you use the Active Cooler. SpecPicks reports that on an open bench at 22°C an uncooled Pi 5 reaches the 85°C throttle threshold in under two minutes of sustained CPU load, while the Active Cooler keeps its test board at 62 to 68°C under the same load. Those are SpecPicks’ measurements, not ours.

Step 4: Flash Raspberry Pi OS Lite 64-bit

In Raspberry Pi Imager choose Raspberry Pi OS Lite (64-bit). Open the customisation settings before writing and set a hostname (for example retropie), a username and password, Wi-Fi if you are not using Ethernet, and enable SSH. Remember the username: RetroPie’s folders live in that user’s home directory, and the guides this one draws on write /home/pi, which only fits if the user is called pi. The community Pi 5 guide treats locale configuration as its own step between writing the card and installing RetroPie, so run sudo raspi-config after first login and set the locale under Localisation Options.

Steps 5 and 6: the setup script and the first controller mapping

Step 5: Run the RetroPie setup script

If you plan to boot from NVMe, read step 7 first so the install lands on the drive you will keep. Log in over SSH (replace pi with the username you set in Imager) and start a tmux session so a dropped connection does not abort a long source build:

ssh [email protected]
# if retropie.local does not resolve, use the IP address from your router's client list:
ssh pi@<ip-address>

sudo apt install -y tmux
tmux new -s retropie
# to reattach after a dropped connection: tmux attach -t retropie

The commands below follow raspberry.tips: update, install git and dialog, clone RetroPie-Setup, run the script and choose Basic install. The wrapper stops on the first error and reports the failing line, and the clone is skipped if the folder already exists, so you can re-run it after a failure.

#!/usr/bin/env bash
set -euo pipefail
trap 'echo "Install stopped near line $LINENO" >&2' ERR

sudo apt update
sudo apt upgrade -y
sudo apt install -y git dialog

if [ ! -d "$HOME/RetroPie-Setup" ]; then
  git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git "$HOME/RetroPie-Setup"
fi

cd "$HOME/RetroPie-Setup"
sudo ./retropie_setup.sh
# In the menu choose: Basic install

On a current Pi OS release expect the Basic install to be the slow part, for the reason given in the second section.

Step 6: Map the first controller

PiShop’s guide says to hold any button on your controller, or a key on a keyboard, on first launch to begin mapping, and to long-press an input to skip it. The hotkey enable button is often SELECT. If input breaks and you cannot navigate, F4 exits EmulationStation to the terminal.

Steps 7 to 9: NVMe boot, Bluetooth pads and getting games onto the Pi

Step 7: Boot from NVMe (optional)

Do this before step 5 if you want RetroPie on the SSD: boot once from a card, run the commands, then flash the SSD from your computer through a USB enclosure with the same Imager settings and boot from it. Update the bootloader, check that the drive shows up, then set the boot order.

sudo rpi-eeprom-update -a
sudo reboot

lsblk

sudo rpi-eeprom-config --edit
# in the editor, set BOOT_ORDER so the NVMe drive is tried before the card
sudo reboot

Our Raspberry Pi NVMe NAS guide goes further into drive detection and mounting on the same hardware.

Step 8: Pair Bluetooth controllers

To pair a pad from an SSH session, put it in pairing mode and use bluetoothctl:

sudo bluetoothctl
scan on
# wait for the controller's MAC address, then:
pair AA:BB:CC:DD:EE:FF
trust AA:BB:CC:DD:EE:FF
connect AA:BB:CC:DD:EE:FF

For a DualSense, PlayStation’s accessories support page gives the pairing combination: hold the Create button, then press and hold the PS button until the light bar blinks, and pick the controller from the list of Bluetooth devices.

Step 9: Add ROMs

PiShop describes two routes. Format a USB drive as FAT32 or exFAT, create a folder named retropie on it, plug it into the Pi and wait until the activity LED stops blinking, after which the folders are generated. Or copy files over SFTP to ~/RetroPie/roms/, with each game in its system’s folder.

PiShop’s guide states: “RetroPie does not include copyrighted ROMs or BIOS files. Only use content you have the legal right to use.”

Steps 10 and 11: BIOS filenames and per-system settings

Step 10: Place BIOS files with the exact names

The PlayStation, Sega Saturn and Neo Geo cores need BIOS files, and each core expects an exact filename; RetroPie’s documentation lists the required filename and checksum per system. raspberry.tips gives these locations. The paths use ~ for the home directory of the user you created in Imager. Our RetroArch BIOS files guide covers setting up BIOS files legally.

SystemFilenameFolder
PlayStation 1scph5501.bin~/RetroPie/BIOS/
Dreamcastdc_boot.bin and dc_flash.bin~/RetroPie/BIOS/dc/
Game Boy Advancegba_bios.bin~/RetroPie/BIOS/
Saturnsaturn_bios.bin~/RetroPie/BIOS/

Step 11: Tune only what needs it

Leave NES, SNES, Game Boy, Genesis and PS1 on default settings, since raspberry.tips rates them as running perfectly. For N64, Dreamcast and PSP, rated very well, change settings only for a title that stutters, starting with a lower internal resolution in the RetroArch quick menu (RetroPie’s documentation covers the hotkey that opens it). Treat Dolphin on RetroPie as experimental. raspberry.tips rates Saturn very slow and marks PS2 “Not supported”, so this guide gives neither a tuning step.

Step 12: back up the build, then check power and heat

Once controllers, BIOS files and games are in place, copy the parts that took effort to a USB drive. This script archives your ROMs, BIOS files, EmulationStation settings and emulator configs, removes its temporary file if anything fails, and takes the mounted backup folder as its argument. Adjust a path if yours differs, since a missing path stops the run.

#!/usr/bin/env bash
set -euo pipefail

DEST="${1:?Usage: backup.sh /path/to/mounted/backup/folder}"
[ -d "$DEST" ] || { echo "Not a directory: $DEST" >&2; exit 1; }

STAMP="$(date +%Y%m%d-%H%M)"
TMP="$(mktemp "$DEST/.retropie-backup.XXXXXX")"
trap 'rm -f "$TMP"' EXIT
trap 'echo "Backup failed near line $LINENO" >&2' ERR

sudo tar -czf "$TMP" -C / \
  "${HOME#/}/RetroPie/roms" \
  "${HOME#/}/RetroPie/BIOS" \
  "${HOME#/}/.emulationstation" \
  opt/retropie/configs

mv "$TMP" "$DEST/retropie-backup-$STAMP.tar.gz"
sync
echo "Saved $DEST/retropie-backup-$STAMP.tar.gz"

For a copy of the whole card, remove it, put it in a USB reader on a computer and read it to an .img file with an imaging tool. If something misbehaves later, these are the checks the sources point to:

  • Lightning-bolt icon or random reboots: the supply is not USB-PD or is under 5A. Use the official 27W unit.
  • Stutter that looks like a software fault: the board is throttling. Check that the Active Cooler fan is plugged into its 4-pin connector and that the case lid is off.
  • A USB SSD that drops out: a 3A supply limits USB peripherals to 600 mA.
  • No picture: use the Micro-HDMI ports and a Micro-HDMI cable.
  • Controller input broken: press F4 to reach the terminal and remap from there.

Last, run a game for a long session and watch the temperature from a second SSH window with the command below. SpecPicks gives 85°C as the point where the Pi 5’s chip starts throttling and 62 to 68°C as what the Active Cooler held its test board to, so a reading that climbs toward 85°C means the fan, the lid or the airflow around the case needs attention.

watch -n 5 vcgencmd measure_temp
Elias Virtanen

Elias Virtanen

Games and consoles

Elias Virtanen covers games and consoles for Tech Insider: console and handheld hardware, game releases, emulators and the business of the games industry. His comparisons start from the makers' specifications and published independent results, and he says plainly what the evidence supports.

View all articles