Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Guixのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Guix
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:パッケージ管理]] [[en:Guix]] {{Warning|Guix は Arch の[[pacman|公式パッケージマネージャ]]ではありません。まだ開発途上です。一部のパッケージは、ビルドに失敗する可能性があります。}} [https://www.gnu.org/software/guix/ GNU Guix] はトランザクションを使用してユーザー環境を再現できるパッケージマネージャです。Guix をスタンドアロンで使って完全な GNU ディストリビューションとして使用することもできますが、Arch に Guix パッケージマネージャをインストールすることで伝統的な成熟した Unix ライク環境をベースとすることが可能です。 Guix で使えるパッケージコマンドについては [https://www.gnu.org/software/guix/manual Guix マニュアル] を読んでください。 == インストール == On Arch Linux you can install Guix either using the AUR or manually as described in the Guix Manual. Installing using the AUR has the advantage that pacman is aware of the package and the extra files in the {{ic|/usr}} file tree. But contrarily to other AUR packages, uninstalling the package does not unwind the entire Guix installation. Since Guix is a package manager by itself and it can also update itself, you still have to manually uninstall the files installed via Guix (no matter whether you installed the AUR package or the manual installation). Therefore, after updating Guix once, the AUR advantage really turns into a disadvantage, as there will be many unnecessary files in the {{ic|/usr}} file tree that are part of the Guix AUR package but that are never used by Guix anymore. Therefore, consider using the manual installation. === Manual Installation === For the manual installation, see [https://guix.gnu.org/manual/html_node/Installation.html#Installation chapter Installation] of the Guix manual. The easiest way is to use the shell installer script linked in there. As of July 2019 this script installs files into the following locations: * {{ic|/gnu/store}}, {{ic|/var/guix}} (the Guix store) * {{ic|/usr/local/share/info}}, {{ic|/usr/local/bin}}, (only symlinks) * {{ic|/root/.config/guix}} (a symlink to the current profile) Furthermore it installs and enables a systemd service called {{ic|guix-daemon.service}}, and creates users {{ic|guixbuilder01}} ... {{ic|guixbuilder10}} and a group {{ic|guixbuild}}. After running the script, create a new file called {{ic|/etc/profile.d/guix.sh}}: # Arrange so that ~/.config/guix/current paths end up first in # the particular path list. for profile in "$HOME/.guix-profile" "$HOME/.config/guix/current" do if [ -f "$profile/etc/profile" ] then # Load the user profile's settings. GUIX_PROFILE="$profile" ; \ . "$profile/etc/profile" else # At least define this one so that basic things just work # when the user installs their first package. export PATH="$profile/bin${PATH:+:$PATH}" export INFOPATH="$profile/share/info${INFOPATH:+:$INFOPATH}" fi done unset profile export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale Now start a new login shell (alternatively reboot your machine) and you can start using Guix: # guix install glibc-locales === AUR Package Installation === {{Note|{{ic|/bin/sh}} が Bash でない場合、ビルドのチェックに失敗します。デフォルトの Arch では問題ありません。}} {{Note|2018年5月13日の時点では、[[Makepkg#tmpfs|BUILDDIR 環境変数]]が tmpfs 上のディレクトリを指していると、makepkg でのビルド中に ''guix-environment-container'' テストが失敗します。}} GNU Guix は AUR の {{AUR|guix}} パッケージでインストールできます。{{ic|PKGBUILD}} に書かれているように、まずは Guix のディストリビュータによって配布されている PGP 鍵を追加する必要があります。 Guix makes builds more reproducible by running the build process using an unprivileged build user account. Therefore if you want to be able to build {{ic|''n''}} packages simultaneously (e.g. for serving multiple users at the same time) you should create {{ic|''n''}} build user accounts. as Guix should be able to build simultaneously. The following command does this the way described in [https://www.gnu.org/software/guix/manual/html_node/Build-Environment-Setup.html#Build-Environment-Setup Guix manual]: # groupadd --system guixbuild # uncomment and type e.g. 10 for ''n'' below --> have ten users # for i in `seq -w 1 ''n''`; do useradd -g guixbuild -G guixbuild \ -d /var/empty -s `which nologin` \ -c "Guix build user $i" --system \ guixbuilder$i; done [[Systemd#Using units|Start and enable]] {{ic|guix-daemon.service}}. You may want to authorize Guix to download and use binary packages (‘substitutes’) from the [https://ci.guix.gnu.org Guix Official Substitute Server]: # guix archive --authorize < /usr/share/guix/ci.guix.gnu.org.pub == {{ic|/tmp}} の外側でパッケージをビルド == {{ic|/tmp}} に十分な容量がないなどの理由でビルドする時の {{ic|TMPDIR}} を変えたい場合、ユニットファイルに変更を加える必要があります (詳しくは [https://www.gnu.org/software/guix/manual/html_node/Build-Environment-Setup.html#Build-Environment-Setup Guix マニュアル] を参照)。{{ic|/tmp}} の代わりに {{ic|''/tmpdir''}} を使用してビルドするには、以下を実行: # systemctl edit guix-daemon.service そして以下の行を追加してください: {{bc|1= [Service] Environment=TMPDIR=''/tmpdir'' }} == Guix のアンインストール == {{ic|guix-daemon.service}} を無効化します。AUR パッケージから Guix をインストールした場合は、[[pacman]] で Guix を削除してください。 {{ic|/etc/systemd/system/guix-daemon.service}}、{{ic|/etc/systemd/system/guix-daemon.service.d}} と {{ic|/etc/profile.d/guix.sh}} が存在していたら削除してください。 それから Guix のビルド用ユーザーやグループも削除してください。 # for i in `seq -w 1 ''n''`; do userdel guixbuilder$i; done # groupdel guixbuild Guix のファイルが保存されている {{ic|/gnu}}, {{ic|/var/guix}}, {{ic|/var/log/guix}} なども削除してください。{{ic|guix-daemon.service}} を編集していた場合、{{ic|/etc/systemd/system/guix-daemon.service.d}} も削除すると良いでしょう。
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Bc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:TranslationStatus
(
ソースを閲覧
)
テンプレート:Warning
(
ソースを閲覧
)
Guix
に戻る。
検索
検索
Guixのソースを表示
話題を追加