以下の内容はhttps://souiunogaii.hatenablog.com/entry/almalinux96-gitlb18-installより取得しました。


AlmaLinux9.6にGitLab18.3をインストールする手順

※[PR]当ブログの記事の中にはプロモーションが含まれています。

・AlmaLinux9.6にGitLab18.3をインストールする方法を知りたい。
・具体的な手順を教えてほしい。

こういった疑問に答えます。

本記事の内容

  1. AlmaLinux9.6にGitLab18.3をインストールする手順

サトナカ (@souiunogaii)

この記事を書いている私は、某SIerに勤務しながら、
WEB系エンジニア・インフラエンジニアに憧れて、プログラミングおよびインフラ技術の勉強をしています。

こういった私が、解説していきます。

私が実機で試したコマンドや画像を載せて書いています。
記事の信頼性担保に繋がると思います。

AlmaLinux9.6にGitLab18.3をインストールする手順

参考ページ

packages.gitlab.com

リポジトリの追加

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
[root@a-gitlb01 ~]# curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
Detected operating system as almalinux/9.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=almalinux&dist=9&source=script
done.
Installing yum-utils...
gitlab_gitlab-ce-source                                             531  B/s | 862  B     00:01
gitlab_gitlab-ce-source                                             7.4 kB/s | 3.1 kB     00:00
GPG 鍵 0x51312F3F をインポート中:
 
(中略) 
 
gitlab_gitlab-ce-source                                             121  B/s | 296  B     00:02
メタデータの期限切れの最終確認: 0:00:01 前の 20250902194710秒 に実施しました。
依存関係が解決しました。
====================================================================================================
 パッケージ              アーキテクチャー     バージョン                 リポジトリー         サイズ
====================================================================================================
インストール:
 yum-utils               noarch               4.3.0-20.el9               baseos                35 k

トランザクションの概要
====================================================================================================
インストール  1 パッケージ

ダウンロードサイズの合計: 35 k
インストール後のサイズ: 23 k
パッケージのダウンロード:
yum-utils-4.3.0-20.el9.noarch.rpm                                   561 kB/s |  35 kB     00:00
----------------------------------------------------------------------------------------------------
合計                                                                 51 kB/s |  35 kB     00:00
トランザクションを確認しています
トランザクションの確認に成功しました。
トランザクションをテストしています
トランザクションのテストに成功しました。
トランザクションを実行しています
  準備中           :                                                                            1/1
  インストール中   : yum-utils-4.3.0-20.el9.noarch                                              1/1
  scriptletの実行中: yum-utils-4.3.0-20.el9.noarch                                              1/1
  検証中           : yum-utils-4.3.0-20.el9.noarch                                              1/1

インストール済み:
  yum-utils-4.3.0-20.el9.noarch

完了しました!
Generating yum cache for gitlab_gitlab-ce...
GPG 鍵 0x51312F3F をインポート中:
 
(中略) 
 
Generating yum cache for gitlab_gitlab-ce-source...

The repository is setup! You can now install packages.

GitLab18.3のインストール

dnf install gitlab-ce
[root@a-gitlb01 ~]# dnf install gitlab-ce
メタデータの期限切れの最終確認: 0:00:33 前の 20250902194721秒 に実施しました。
依存関係が解決しました。
====================================================================================================
 パッケージ          アーキテクチャー バージョン                   リポジトリー               サイズ
====================================================================================================
インストール:
 gitlab-ce           x86_64           18.3.1-ce.0.el9              gitlab_gitlab-ce           1.4 G

トランザクションの概要
====================================================================================================
インストール  1 パッケージ

ダウンロードサイズの合計: 1.4 G
インストール後のサイズ: 3.3 G
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
gitlab-ce-18.3.1-ce.0.el9.x86_64.rpm                                9.6 MB/s | 1.4 GB     02:25
----------------------------------------------------------------------------------------------------
合計                                                                9.6 MB/s | 1.4 GB     02:25
gitlab_gitlab-ce                                                    7.1 kB/s | 3.1 kB     00:00
GPG 鍵 0x51312F3F をインポート中:
 Userid     : "GitLab B.V. (package repository signing key) <packages@gitlab.com>"
 Fingerprint: F640 3F65 44A3 8863 DAA0 B6E0 3F01 618A 5131 2F3F
 From       : https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey
これでよろしいですか? [y/N]: y
鍵のインポートに成功しました
gitlab_gitlab-ce                                                     22 kB/s | 7.0 kB     00:00
GPG 鍵 0xF27EAB47 をインポート中:
 
(中略) 
 
これでよろしいですか? [y/N]: y
鍵のインポートに成功しました
トランザクションを確認しています
トランザクションの確認に成功しました。
トランザクションをテストしています
トランザクションのテストに成功しました。
トランザクションを実行しています
  準備中           :                                                                            1/1
  scriptletの実行中: gitlab-ce-18.3.1-ce.0.el9.x86_64                                           1/1
  インストール中   : gitlab-ce-18.3.1-ce.0.el9.x86_64                                           1/1
  scriptletの実行中: gitlab-ce-18.3.1-ce.0.el9.x86_64                                           1/1
It looks like GitLab has not been configured yet; skipping the upgrade script.
         .                        ..
        :c:                      ,cc'
       :ccc:                    'cccc.
      :ccccc,                   cccccc
     .ccccccc                  :cccccc:
     cccccccc:                .cccccccc'
    :ccccccccc;..............'cccccccccc'
   cccccccccccccccccccccccccccccccccccccc'
  :ooolccccccccccccccccccccccccccccccllooo
  ooooooollccccccccccccccccccccccclooooooo
  ;ooooooooollcccccccccccccccccloooooooool
   oooooooooooolccccccccccccloooooooooooo.
    .ooooooooooooolcccccclloooooooooooo;
       cooooooooooooolllooooooooooooo.
          loooooooodxkkxddoooooooo.
            .ooodxkkkkkkkkxdooo;
               .kkkkkkkkkkkk:
                  ;kkkkkkx
                     :d

Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
  sudo gitlab-ctl reconfigure

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=18-3


  検証中           : gitlab-ce-18.3.1-ce.0.el9.x86_64                                           1/1

インストール済み:
  gitlab-ce-18.3.1-ce.0.el9.x86_64

完了しました!

再構築

sudo gitlab-ctl reconfigure

初回ログイン

初期パスワードの確認

/etc/gitlab/initial_root_password
[root@a-gitlb01 ~]# cat /etc/gitlab/initial_root_password
# WARNING: This value is valid only in the following conditions
#          1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).
#          2. Password hasn't been changed manually, either via UI or via command line.
#
#          If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.

Password: ryUMdsNECauL5225GakHk+qs6iG+hK86zgHJP2JSnzI=

# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.

この初期パスワードの有効期限は24時間です。

ブラウザで表示

http://ホスト名

パスワード変更

言語を日本語に変更

やったぜ!




以上の内容はhttps://souiunogaii.hatenablog.com/entry/almalinux96-gitlb18-installより取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14