diff --git a/docs/notice-for-admins.md b/docs/notice-for-admins.md index ff83668779..1255310abc 100644 --- a/docs/notice-for-admins.md +++ b/docs/notice-for-admins.md @@ -21,7 +21,7 @@ psql (PostgreSQL) 16.1 In this case, your PostgreSQL major version is `16`. -There are official installation instructions for many operating systems on , so please follow the instructions on this page. However, since many users are using Ubuntu, and there are no instructions for Arch Linux, we explicitly list the instructions for Ubuntu and Arch Linux here. Please keep in mind that this is not official information and the procedures may change. +There are official installation instructions for many operating systems on , so please follow the instructions on this page. However, since many users are using Ubuntu, and there are no instructions for Arch Linux and Fedora, we explicitly list the instructions for Ubuntu, Arch Linux and Fedora here. Please keep in mind that this is not official information and the procedures may change. ##### Ubuntu @@ -53,6 +53,39 @@ git clone https://aur.archlinux.org/pgroonga.git && cd pgroonga && makepkg -si # or yay -S pgroonga ``` +##### Fedora + +You need to build PGroonga from source and create a policy package. + +```sh +sudo dnf install make groonga-devel postgresql-server-devel redhat-rpm-config +wget https://packages.groonga.org/source/pgroonga/pgroonga-3.1.8.tar.gz +tar xvf pgroonga-3.1.8.tar.gz +cd pgroonga-3.1.8 +make +sudo make install +``` + +```sh +cat > pgroonga.te << EOF +module pgroonga 1.0; + +require { + type postgresql_t; + type postgresql_db_t; + class file map; +} + +allow postgresql_t postgresql_db_t:file map; +EOF +``` + +```sh +checkmodule -M -m -o pgroonga.mod pgroonga.te +semodule_package -o pgroonga.pp -m pgroonga.mod +sudo semodule -i pgroonga.pp +``` + #### 2. Enable PGroonga After the instllation, please execute this command to enable PGroonga: