# Installing Games

TechLit computers support adding games and other software as "package bundles".
These bundles are managed similarly to other system components and can be
pulled from the network and installed locally.

{{< asciinema
file="casts/games.cast"
theme="dracula"
speed="1.5"
autoplay="true"
loop="true"
markers="0:Pulling,12.2:Installing"

>}}

---

## Installing a Game Bundle

Installing a game involves pulling the bundle files to the computer and
then running the installation command provided by the tool.

{{% steps %}}

### Pull the Bundle

First, ensure the game bundle is available on your computer.
You can pull it from the internet (Bastion) or another computer on the network (LAN).

**From the Internet (Bastion):**

```bash
# Example for SuperTux
tl-comp-pull supertux-bundle http://bastion
```

**From a Local Computer (LAN):**

```bash
# Replace 'tl-1234' with the hostname of the source computer
tl-comp-pull supertux-bundle tl-1234.local
```

### Run the Installation Command

Once the bundle is pulled, the `tl-comp-pull` command will display the specific
instructions for installing it. It usually involves running a command like this:

```bash
# Copy the exact command from your terminal output
sudo pacman -U /srv/packages/bundle-name/*.pkg.tar.zst
```

{{% /steps %}}

---

## Uninstalling a Game

If you need to remove a game, you have several options depending on
whether you want to remove just the game or revert recent system changes.

### Option 1: Using the Package Manager

The recommended way to remove a specific game package is to use
the package manager.

```bash
# Replace 'game-name' with the actual package name (e.g., supertuxkart)
sudo pacman -Rs game-name
```

### Option 2: System Restore

You can also use TechLit's built-in tools to revert the system to its
previous state.

- **Restore Snapshot:** `tl-img-restore`
- **Reconfigure System:** `tl-sys-configure`

