# Install sdl2-compat with Homebrew, apk, apt, dnf, Nix, pacman, zypper

SDL2 compatibility layer that uses SDL3 behind the scenes. Version 2.32.70 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:sdl2-compat
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sdl2-compat
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add sdl2-compat
```

  Evidence: Alpine Linux edge package indexes: sdl2-compat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libsdl2-compat
```

  Evidence: Debian stable package indexes: libsdl2-compat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install sdl2-compat
```

  Evidence: Fedora Rawhide package metadata: sdl2-compat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#sdl2-compat
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sd/sdl2-compat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S sdl2-compat
```

  Evidence: Arch Linux sync databases: sdl2-compat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libSDL2-2_0-0
```

  Evidence: openSUSE Tumbleweed package metadata: libSDL2-2_0-0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:sdl2-compat
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sdl2-compat>
- **Version:** 2.32.70
- **Source summary:** SDL2 compatibility layer that uses SDL3 behind the scenes
- **Homepage:** <https://github.com/libsdl-org/sdl2-compat>
- **Repository:** <https://github.com/libsdl-org/sdl2-compat>
- **Upstream docs:** <https://github.com/libsdl-org/sdl2-compat#readme>
- **License:** Zlib
- **Source archive:** <https://github.com/libsdl-org/sdl2-compat/releases/download/release-2.32.70/sdl2-compat-2.32.70.tar.gz>
- **Last updated:** 2026-06-22T14:06:15-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- sdl2-config (cli)
- sdl2-config (alias)

## Dependencies

- sdl3

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.32.70
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/libsdl-org/sdl2-compat
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for sdl2-compat. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sdl2-compat
- **Aliases:** sdl2
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - libsdl2-compat - 2.32.54+ds-1: normalized package name match | Debian stable package indexes: libsdl2-compat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SDL 2 binary compatibility library wrapping SDL 3 | https://github.com/libsdl-org/sdl2-compat
- Debian apt - libsdl2-compat-dev - 2.32.54+ds-1: normalized package name match | Debian stable package indexes: libsdl2-compat-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | libsdl2-dev replacement using SDL 3 | https://github.com/libsdl-org/sdl2-compat
- Debian apt - libsdl2-compat-shim - 2.32.54+ds-1: normalized package name match | Debian stable package indexes: libsdl2-compat-shim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | libsdl2-2.0-0 replacement using SDL 3 | https://github.com/libsdl-org/sdl2-compat
- Debian apt - libsdl2-compat-tests - 2.32.54+ds-1: normalized package name match | Debian stable package indexes: libsdl2-compat-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SDL 2 binary compatibility library - tests | https://github.com/libsdl-org/sdl2-compat
- Nix - sdl2-compat: normalized package name match | nixpkgs package indexes: pkgs/by-name/sd/sdl2-compat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - sdl2-compat - 2.32.68-r0: normalized package name match | Alpine Linux edge package indexes: sdl2-compat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SDL2 compatibility layer that uses SDL3 behind the scenes | https://github.com/libsdl-org/sdl2-compat
- apk - sdl2-compat-dev - 2.32.68-r0: normalized package name match | Alpine Linux edge package indexes: sdl2-compat-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SDL2 compatibility layer that uses SDL3 behind the scenes (development files) | https://github.com/libsdl-org/sdl2-compat
- apk - sdl2-compat-doc - 2.32.68-r0: normalized package name match | Alpine Linux edge package indexes: sdl2-compat-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SDL2 compatibility layer that uses SDL3 behind the scenes (documentation) | https://github.com/libsdl-org/sdl2-compat
- apk - sdl2-compat-static - 2.32.68-r0: normalized package name match | Alpine Linux edge package indexes: sdl2-compat-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SDL2 compatibility layer that uses SDL3 behind the scenes (static library) | https://github.com/libsdl-org/sdl2-compat
- dnf - sdl2-compat - 2.32.68-1.fc45: normalized package name match | Fedora Rawhide package metadata: sdl2-compat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | SDL 2.0 runtime compatibility library using SDL 3.0 | https://github.com/libsdl-org/sdl2-compat
- dnf - sdl2-compat-devel - 2.32.68-1.fc45: normalized package name match | Fedora Rawhide package metadata: sdl2-compat-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Files to develop SDL 2.0 applications using SDL 3.0 | https://github.com/libsdl-org/sdl2-compat
- dnf - sdl2-compat-static - 2.32.68-1.fc45: normalized package name match | Fedora Rawhide package metadata: sdl2-compat-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Static library to develop SDL 2.0 applications using SDL 3.0 | https://github.com/libsdl-org/sdl2-compat
- pacman - sdl2-compat - 2.32.70-1: normalized package name match | Arch Linux sync databases: sdl2-compat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An SDL2 compatibility layer that uses SDL3 behind the scenes | https://github.com/libsdl-org/sdl2-compat
- zypper - libSDL2-2_0-0 - 2.32.68-1.1: normalized package name match | openSUSE Tumbleweed package metadata: libSDL2-2_0-0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | SDL-2.0 Compatibility Layer for Simple DirectMedia Layer 3.0 | https://github.com/libsdl-org/sdl2-compat
- zypper - libSDL2-2_0-0-32bit - 2.32.68-1.1: normalized package name match | openSUSE Tumbleweed package metadata: libSDL2-2_0-0-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | SDL-2.0 Compatibility Layer for Simple DirectMedia Layer 3.0 | https://github.com/libsdl-org/sdl2-compat
- zypper - sdl2-compat-devel - 2.32.68-1.1: normalized package name match | openSUSE Tumbleweed package metadata: sdl2-compat-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Header and build system files for sdl2-compat | https://github.com/libsdl-org/sdl2-compat


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [adplay](https://www.automicvault.com/pkg/brew/adplay/) - Popular package that depends on this formula.
- [allureofthestars](https://www.automicvault.com/pkg/brew/allureofthestars/) - Popular package that depends on this formula.
- [arx-libertatis](https://www.automicvault.com/pkg/brew/arx-libertatis/) - Popular package that depends on this formula.
- [atari800](https://www.automicvault.com/pkg/brew/atari800/) - Popular package that depends on this formula.
- [ballerburg](https://www.automicvault.com/pkg/brew/ballerburg/) - Popular package that depends on this formula.
- [blastem](https://www.automicvault.com/pkg/brew/blastem/) - Popular package that depends on this formula.
- [bochs](https://www.automicvault.com/pkg/brew/bochs/) - Popular package that depends on this formula.
- [sdl12-compat](https://www.automicvault.com/pkg/brew/sdl12-compat/) - Local package facts share a topical domain. Shared terms: behind, compat, compatibility, config, layer.
- [cataclysm](https://www.automicvault.com/pkg/brew/cataclysm/) - Local package facts share a topical domain. Shared terms: compat, sdl2, sdl2-compat.
- [corsixth](https://www.automicvault.com/pkg/brew/corsixth/) - Local package facts share a topical domain. Shared terms: compat, sdl2, sdl2-compat.

## Combined YAML source

View the package source record on GitHub. [combined/sdl2-compat.yml](https://github.com/automic-vault/db/blob/main/combined/sdl2-compat.yml)


## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
