> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/compiling-mariadb-from-source/legacy-guides/building_mariadb_on_gentoo.md).

# Building MariaDB on Gentoo

MariaDB is in Gentoo, so the steps to build it are:

1. Synchronize your tree with\\

   ```shell
   emerge --sync
   ```
2. Build MariaDB using\\

   ```bash
   emerge mariadb
   ```

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
