# `omnipackage portal`

Open an interactive `bash` shell inside the base container image for a given distro. Use it to debug failing builds: run the same `dnf install ...` / `apt-get install ...` / `pacman -Syu ...` lines `setup` would run, inspect the error, find the right package name, then update `config.yml`.

```text
omnipackage portal <distro> [flags]
```

`<distro>` is the distro ID, e.g. `fedora_42`, `debian_13`, or `arch`. See [Supported distros](https://docs.omnipackage.org/distros/index.md) for the full list.

## Flags

| Flag                 | Default                     | Description                                                                                                    |
| -------------------- | --------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `<distro>`           | — (required)                | Distro ID                                                                                                      |
| `--build-dir <path>` | `$TMPDIR/omnipackage-build` | Bind-mounted into the container at `/<basename-of-build-dir>` so you can move files between host and container |

## What you get

- The plain distro base image (e.g. `fedora:42`, `debian:trixie`, `archlinux:latest`) — **not** the post-`setup` snapshot. `portal` is for diagnosing setup, not skipping it.
- An interactive `bash` shell as root.
- `--build-dir` mounted at `/<basename>` (so `/tmp/omnipackage-build` becomes `/omnipackage-build` inside).
- `--rm` semantics — the container is discarded on `exit`; no state persists between portal sessions.

Finding the right package name for a `build_dependencies` entry:

```sh
omnipackage portal fedora_42
# inside container:
dnf install -y my-suspect-package
# or
dnf search my-keyword
```
