Gaming on Alpine: Difference between revisions

From Alpine Linux
m (→‎See also: 'obs-studio' syntax restored.)
 
(31 intermediate revisions by 18 users not shown)
Line 1: Line 1:
'''Gaming on Alpine''' is a thing.
This page documents the various game-related packages that are available in Alpine Linux and lists alternative ways to game. If you are interested in developing games on Alpine Linux, visit [[Game development on Alpine Linux]].


== Installing games ==
== Installing Games ==


sudo apk add micro-tetris
As when installing any other package, run the following:
 
{{Cmd|$ doas apk add <var>game</var>}}
 
Where <var>game</var> is the name of the package containing the game, such as {{Pkg|micro-tetris}} from among the [[#List of games|available games]].
 
== Steam ==
{{Main|Steam}}
Steam, a popular game distribution platform by Valve, can be run on Alpine Linux as a [[Flatpak]] or as this [https://github.com/ivan-hc/Steam-appimage AppImage].
 
== Wine ==
 
{{Pkg|wine}} enables a variety of Windows software to be run, including games, under Linux. If one is using x86_64 architecture, then 32-bit applications will run in Wine's ''WoW64'' mode, which may not be compatible with all software.
 
=== Wine inside docker ===
 
To run windows app/games inside a [https://www.reddit.com/r/linux4noobs/comments/1fegh0i/winealpine/ docker container] on Alpine Linux, {{pkg|libcap}} is required in order to fix issues related to [https://gitlab.winehq.org/wine/wine/-/wikis/FAQ#failed-to-use-icmp-network-ping-this-requires-special-permissions raw sockets].
 
<Pre>
RUN apk add --no-cache libcap
RUN setcap cap_net_raw+epi /usr/bin/wine-preloader
</Pre>


== Permissions ==
== Permissions ==


To make sure your account is in the games group. You could do.
To make sure that your user's account (<var>youruser</var>) is in the ''"games"'' group, first check whether the group is listed in <var>youruser</var>'s groups listing:
 
{{Cmd|$ id <var>youruser</var>}}
 
If ''"games"'' does not appear in the listing, then add the group to the user by executing the following:
 
{{Cmd|$ doas adduser <var>youruser</var> games}}
 
Log-off and then log back on in order for the changes to take effect. Most games do not require this in order to work.


sudo gpasswd -a name games
== List of games ==


Log off then relog back on.
Below is a list of game packages that are available on Alpine Linux:-
{|class="wikitable" align="center" style="width:100%; border:1px #0771a6 solid; background:#f9f9f9; text-align:left; border-collapse:collapse;"
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| width="20%" |Game
|width="20%" | Package name
|| Description
|-
| [https://www.advancemame.it/ AdvanceMAME] || {{Pkg|advancemame}} || Arcade simulator.
|-
| [https://gitlab.gnome.org/GNOME/aisleriot Aisleriot] || {{Pkg|aisleriot}} || Solitaire card games.
|-
| [https://bsd-games.sourceforge.io/ bsd-games] || {{Pkg|bsd-games}} || Traditional text mode games from BSD.
|-
|[https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom Chocolate Doom] || {{Pkg|chocolate-doom}} || Portable release of Doom, Heretic, Hexen, and Strife.
|-
| [https://www.dosbox-staging.org/ DOSBox Staging] || {{Pkg|dosbox-staging}} || DOS-emulator that uses SDL.
|-
| [http://juzzlin.github.io/DustRacing2D/ Dust Racing 2D (dustrac)] || {{Pkg|dustracing2d}} || Traditional top-down car racing game including a level editor.
|-
| [http://www.flarerpg.org/ Flare (game)] || {{Pkg|flare-game}} || Fantasy action RPG using the FLARE engine (not to be confused with {{Pkg|flare}}, the unofficial Signal GTK client).
|-
| [https://www.flightgear.org/ FlightGear]|| {{Pkg|flightgear}} || Flight simulator.
|-
| [https://www.freeciv.org Freeciv]|| {{Pkg|freeciv}} || Free and Open Source empire-building strategy game.
|-
|[https://freedoom.github.io/ Freedoom]|| {{Pkg|freedoom}} || an entirely free software game running on a Doom engine.
|-
| [https://davidgriffith.gitlab.io/frotz/ Frotz] || {{Pkg|frotz}} || Z machine (Infocom interactive fiction) Interpreter.
|-
| [https://gcompris.net/index-en.html GCompris] || {{Pkg|gcompris-qt}} || Educational software suite comprising of numerous activities for children aged 2 to 10.
|-
| [https://www.gnu.org/software/chess/ GNU Chess]|| {{Pkg|gnuchess}} || Play chess against the computer.
|-
|[https://zdoom.org/index GZDoom] || {{Pkg|gzdoom}} || Modern game engine resembling modern FPSes compatible with Doom WADs
|-
| [https://gitlab.gnome.org/World/highscore Highscore] || {{Pkg|highscore}} || A 'rewrite' of Highscore, formerly known as gnome-games.
|-
| [https://apps.kde.org/kpat/ KPat (KPatience)] || {{Pkg|kpat}} || A selection of solitaire card games packaged by KDE.
|-
| [https://lgames.sourceforge.io/LBreakout2/ LBreakout2]|| {{Pkg|lbreakout2}} || Ball-and-paddle game.
|-
| [https://lgames.sourceforge.io/LBreakoutHD LBreakoutHD] || {{Pkg|lbreakouthd}} || {{Note|No level editor available.}}
The successor to LBreakout2.
{{Pkg|lbreakout2}} is needed for level creation.
|-
| [https://lgames.sourceforge.io/LPairs LPairs]|| {{Pkg|lpairs2}} || Classical memory game.
|-
| [https://www.luanti.org/ Luanti] || {{Pkg|luanti}} || An open source voxel game engine.
|-
| [https://github.com/troglobit/tetris Micro Tetris] || {{Pkg|micro-tetris}} || A version of Tetris that uses ANSI escape sequences and can fit in embedded devices.
|-
| [https://www.nethack.org NetHack] || {{Pkg|nethack}} || A single player Rogue-like dungeon crawler or dungeon exploration game.
|-
| [https://github.com/abakh/nbsdgames New BSD Games] || {{Pkg|nbsdgames}} || A package of 18 text-based modern games.
|-
| [https://openrct2.io/ OpenRCT2] || {{Pkg|openrct2}} || A free and open-source reimplementation of “RollerCoaster Tycoon 2”.
{{Note| Requires original files of “RollerCoaster Tycoon 2” to play.}}
|-
| [https://www.openttd.org/ OpenTTD]|| {{Pkg|openttd}} || A business simulation game.
|-
| [https://www.retroarch.com/ RetroArch] || {{Pkg|retroarch}} || Frontend for emulators, game engines, and media players using libretro.
|-
| [https://www.scummvm.org/ ScummVM]|| {{Pkg|scummvm}} || Engine for several graphical adventure games.
|-
| [https://www.chiark.greenend.org.uk/~sgtatham/puzzles/ Simon Tatham's Portable Puzzle Collection] || {{Pkg|sgt-puzzles}} || Small programs offering puzzle games for one player.
|-
| [https://www.supertux.org/ SuperTux] || {{Pkg|supertux}} || Classic 2D jump'n'run side-scroller game in a style similar to the original Super Mario games.
|-
|[https://supertuxkart.net/Main_Page SuperTuxKart] || {{pkg|supertuxkart}} || Kart racing game with OSS mascots.
|-
|[https://www.xonotic.org/ Xonotic] || {{Pkg|xonotic}} || The Free and Fast Arena Shooter.
Clients are: {{Pkg|xonotic-sdl}} or {{Pkg|xonotic-glx}}.  Install {{Pkg|xonotic-server}} to run a dedicated server.
|}


== List of games available on Alpine Linux ==
== Support Software ==
{{Expand|Contributions/guidance encouraged – here or as new wiki pages.  Thank you!}}{{Seealso|Gamepad}}
Available on Alpine Linux:-
* {{Pkg|game-devices-udev}} - Udev rules for various game controllers.
* {{Pkg|gamemode}} - Optimise Linux system performance on demand.
* {{Pkg|kodi-game-libretro*}} - Emulator add-ons for [[Kodi]] to enable older/retro games using the Libretro system.
* {{Pkg|libgnome-games-support}} - Code shared between GNOME games.
* {{Pkg|libkdegames}} - Common code and data for many KDE games.
* {{Pkg|py3-pygame}} - Python library for making applications and games based on SDL.
* {{Pkg|texlive-games}} - TeX Live games typesetting tools.
* {{Pkg|texmf-dist-games}} - Games typesetting using texmf-dist.


* [http://www.advancemame.it/ AdvanceMAME] - advancemame -- Arcade Simulator
== See also ==
* [http://frotz.sourceforge.net/ Frotz] - frotz -- Z machine (Infocom interactive fiction) Interpreter
* [http://home.flightgear.org FlightGear] - flightgear -- Flight Simulator
* [https://en.wikipedia.org/wiki/GNU_Chess GNU Chess] - gnuchess -- Play chess against the computer
* [https://github.com/troglobit/tetris Micro Tetris] - micro-tetris -- Uses ANSI escape sequences and can fit in embedded devices
* [https://www.minetest.net/ Minetest] - minetest -- An Inspired Minecraft game
* [https://en.wikipedia.org/wiki/OpenTTD OpenTTD] - openttd -- A business simulation game
* [https://www.nethack.org NetHack] - Rogue-like dungeon crawler
* [http://www.xonotic.org/ Xonotic] - xonotic -- A FPS arena game


== Game related software ==
* [[Steam|Steam on Alpine Linux]]
* [https://wine.htmlvalidator.com/install-wine-on-alpine-linux-3.html How to Install Wine on Alpine Linux 3]
* [https://gitlab.winehq.org/wine/wine/-/wikis/FAQ  Wine FAQ]
* [https://obsproject.com/ OBS Studio] ({{Pkg|obs-studio}}) - Used by live streamers on streaming platforms such as YouTube and Twitch.
* [[Using Distrobox For VR Gaming]]


* [https://en.wikipedia.org/wiki/Wine_(software) Wine] - wine -- It is typically used to play Windows games - You may need to chroot/multiboot as 32-bit Alpine to use 32 bit Windows games.  If you use x86_64, you can only run 64 bit Windows programs.
[[category:Gaming]]
* [https://obsproject.com/ OBS Studio] - obs-studio -- It is used to live stream a gaming session

Latest revision as of 05:50, 15 February 2026

This page documents the various game-related packages that are available in Alpine Linux and lists alternative ways to game. If you are interested in developing games on Alpine Linux, visit Game development on Alpine Linux.

Installing Games

As when installing any other package, run the following:

$ doas apk add game

Where game is the name of the package containing the game, such as micro-tetris from among the available games.

Steam

Steam, a popular game distribution platform by Valve, can be run on Alpine Linux as a Flatpak or as this AppImage.

Wine

wine enables a variety of Windows software to be run, including games, under Linux. If one is using x86_64 architecture, then 32-bit applications will run in Wine's WoW64 mode, which may not be compatible with all software.

Wine inside docker

To run windows app/games inside a docker container on Alpine Linux, libcap is required in order to fix issues related to raw sockets.

RUN apk add --no-cache libcap
RUN setcap cap_net_raw+epi /usr/bin/wine-preloader

Permissions

To make sure that your user's account (youruser) is in the "games" group, first check whether the group is listed in youruser's groups listing:

$ id youruser

If "games" does not appear in the listing, then add the group to the user by executing the following:

$ doas adduser youruser games

Log-off and then log back on in order for the changes to take effect. Most games do not require this in order to work.

List of games

Below is a list of game packages that are available on Alpine Linux:-

Game Package name Description
AdvanceMAME advancemame Arcade simulator.
Aisleriot aisleriot Solitaire card games.
bsd-games bsd-games Traditional text mode games from BSD.
Chocolate Doom chocolate-doom Portable release of Doom, Heretic, Hexen, and Strife.
DOSBox Staging dosbox-staging DOS-emulator that uses SDL.
Dust Racing 2D (dustrac) dustracing2d Traditional top-down car racing game including a level editor.
Flare (game) flare-game Fantasy action RPG using the FLARE engine (not to be confused with flare, the unofficial Signal GTK client).
FlightGear flightgear Flight simulator.
Freeciv freeciv Free and Open Source empire-building strategy game.
Freedoom freedoom an entirely free software game running on a Doom engine.
Frotz frotz Z machine (Infocom interactive fiction) Interpreter.
GCompris gcompris-qt Educational software suite comprising of numerous activities for children aged 2 to 10.
GNU Chess gnuchess Play chess against the computer.
GZDoom gzdoom Modern game engine resembling modern FPSes compatible with Doom WADs
Highscore highscore A 'rewrite' of Highscore, formerly known as gnome-games.
KPat (KPatience) kpat A selection of solitaire card games packaged by KDE.
LBreakout2 lbreakout2 Ball-and-paddle game.
LBreakoutHD lbreakouthd
Note: No level editor available.

The successor to LBreakout2. lbreakout2 is needed for level creation.

LPairs lpairs2 Classical memory game.
Luanti luanti An open source voxel game engine.
Micro Tetris micro-tetris A version of Tetris that uses ANSI escape sequences and can fit in embedded devices.
NetHack nethack A single player Rogue-like dungeon crawler or dungeon exploration game.
New BSD Games nbsdgames A package of 18 text-based modern games.
OpenRCT2 openrct2 A free and open-source reimplementation of “RollerCoaster Tycoon 2”.
Note: Requires original files of “RollerCoaster Tycoon 2” to play.
OpenTTD openttd A business simulation game.
RetroArch retroarch Frontend for emulators, game engines, and media players using libretro.
ScummVM scummvm Engine for several graphical adventure games.
Simon Tatham's Portable Puzzle Collection sgt-puzzles Small programs offering puzzle games for one player.
SuperTux supertux Classic 2D jump'n'run side-scroller game in a style similar to the original Super Mario games.
SuperTuxKart supertuxkart Kart racing game with OSS mascots.
Xonotic xonotic The Free and Fast Arena Shooter.

Clients are: xonotic-sdl or xonotic-glx. Install xonotic-server to run a dedicated server.

Support Software

This material needs expanding ...

Contributions/guidance encouraged – here or as new wiki pages. Thank you!

Available on Alpine Linux:-

See also