目次
Fedora Copr (Cool Other Package Repo) リポジトリを利用する
本家: Fedora Copr - Project List
Wiki: Category:Copr - Fedora Project Wiki
Copr (Cool Other Package Repo) は、サードパーティのパッケージリポジトリの構築と管理を容易にするための Fedora プロジェクトである。Fedora インフラストラクチャ内にインストールされるインスタンスは、Fedora メンテナーに、ビルドして他のユーザーと共有するパッケージのリポジトリを作成する機能を提供する。
Fedora プロジェクトの公式リポジトリに公開される前の、比較的新しいパッケージが登録されている場合もあるので、自分でビルド・インストールする前に探してみると良い。
Fedora Copr アカウント
.NET Core
.NET5 は既に Fedora 公式リポジトリに存在するので Copr から入れる必要はなくなりました。
.NET Core のパッケージは 2019/09/20 現在 Copr で DotNet SIG (Special Interest Group) が管理している。
Fedora 31 で .NET Core をインストールするには以下のコマンドを使って Copr の DotNet SIG が管理するリポジトリを有効化してインストールを行う。
将来的には .NET Core パッケージは Fedora 公式リポジトリで公開されるようになるだろう。
$ sudo dnf copr enable @dotnet-sig/dotnet $ sudo dnf install dotnet-runtime-3.0 dotnet-host-fxr-3.0 dotnet-sdk-3.0
リポジトリ URL
https://copr-be.cloud.fedoraproject.org/results/%40dotnet-sig/dotnet/fedora-30-x86_64/
https://copr-be.cloud.fedoraproject.org/results/%40dotnet-sig/dotnet/fedora-31-x86_64/
https://copr-be.cloud.fedoraproject.org/results/%40dotnet-sig/dotnet/fedora-32-x86_64/
2020/05/03 現在 - .NET Core 3.0 が Fedora 32 リポジトリに存在しない場合の対処
Fedora 31 の Copr には .NET Core 3.0 が存在するが、 Fedora 32 にはまだ存在していないためインストールできない。
$ sudo dnf install dotnet-runtime-3.0 dotnet-hostfxr-3.0 dotnet-sdk-3.0
Last metadata expiration check: 0:07:06 ago on Sun May 3 08:46:17 2020. No match for argument: dotnet-runtime-3.0 No match for argument: dotnet-hostfxr-3.0 No match for argument: dotnet-sdk-3.0 Error: Unable to find a match: dotnet-runtime-3.0 dotnet-hostfxr-3.0 dotnet-sdk-3.0
DNF の dotnet-sig リポジトリを一時的に Fedora 31 からインストールするように指定する。
$ sudo dnf install dotnet-runtime-3.0 dotnet-hostfxr-3.0 dotnet-sdk-3.0 --repofrompath dotnet-sig_fc31,https://copr-be.cloud.fedoraproject.org/results/@dotnet-sig/dotnet/fedora-31-x86_64/
Added dotnet-sig_fc31 repo from https://copr-be.cloud.fedoraproject.org/results/@dotnet-sig/dotnet/fedora-31-x86_64/
dotnet-sig_fc31 60 kB/s | 115 kB 00:01
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
dotnet-hostfxr-3.0 x86_64 3.0.0-5.fc31 dotnet-sig_fc31 158 k
dotnet-runtime-3.0 x86_64 3.0.0-5.fc31 dotnet-sig_fc31 26 M
dotnet-sdk-3.0 x86_64 3.0.100-5.fc31 dotnet-sig_fc31 40 M
Installing dependencies:
aspnetcore-runtime-3.0 x86_64 3.0.0-5.fc31 dotnet-sig_fc31 5.8 M
aspnetcore-targeting-pack-3.0 x86_64 3.0.0-5.fc31 dotnet-sig_fc31 883 k
dotnet-apphost-pack-3.0 x86_64 3.0.0-5.fc31 dotnet-sig_fc31 65 k
dotnet-host x86_64 3.1.3-1.fc32 updates 103 k
dotnet-targeting-pack-3.0 x86_64 3.0.0-5.fc31 dotnet-sig_fc31 728 k
dotnet-templates-3.0 x86_64 3.0.100-5.fc31 dotnet-sig_fc31 1.7 M
libicu x86_64 65.1-2.fc32 fedora 9.6 M
libunwind x86_64 1.3.1-5.fc32 fedora 67 k
lttng-ust x86_64 2.11.0-4.fc32 fedora 277 k
netstandard-targeting-pack-2.1 x86_64 3.1.103-1.fc32 updates 510 k
numactl-libs x86_64 2.0.12-4.fc32 fedora 30 k
userspace-rcu x86_64 0.11.1-3.fc32 fedora 104 k
Transaction Summary
================================================================================
Install 15 Packages
Total download size: 87 M
Installed size: 295 M
Is this ok [y/N]: y
Downloading Packages:
(1/15): dotnet-host-3.1.3-1.fc32.x86_64.rpm 225 kB/s | 103 kB 00:00
(2/15): libunwind-1.3.1-5.fc32.x86_64.rpm 190 kB/s | 67 kB 00:00
(3/15): lttng-ust-2.11.0-4.fc32.x86_64.rpm 266 kB/s | 277 kB 00:01
(4/15): numactl-libs-2.0.12-4.fc32.x86_64.rpm 238 kB/s | 30 kB 00:00
(5/15): netstandard-targeting-pack-2.1-3.1.103- 222 kB/s | 510 kB 00:02
(6/15): userspace-rcu-0.11.1-3.fc32.x86_64.rpm 266 kB/s | 104 kB 00:00
(7/15): aspnetcore-targeting-pack-3.0-3.0.0-5.f 445 kB/s | 883 kB 00:01
(8/15): dotnet-apphost-pack-3.0-3.0.0-5.fc31.x8 243 kB/s | 65 kB 00:00
(9/15): dotnet-hostfxr-3.0-3.0.0-5.fc31.x86_64. 598 kB/s | 158 kB 00:00
(10/15): libicu-65.1-2.fc32.x86_64.rpm 1.0 MB/s | 9.6 MB 00:09
(11/15): dotnet-runtime-3.0-3.0.0-5.fc31.x86_64 2.2 MB/s | 26 MB 00:12
(12/15): dotnet-targeting-pack-3.0-3.0.0-5.fc31 1.2 MB/s | 728 kB 00:00
(13/15): aspnetcore-runtime-3.0-3.0.0-5.fc31.x8 366 kB/s | 5.8 MB 00:16
(14/15): dotnet-templates-3.0-3.0.100-5.fc31.x8 1.6 MB/s | 1.7 MB 00:01
(15/15): dotnet-sdk-3.0-3.0.100-5.fc31.x86_64.r 1.6 MB/s | 40 MB 00:25
--------------------------------------------------------------------------------
Total 2.4 MB/s | 87 MB 00:36
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : dotnet-host-3.1.3-1.fc32.x86_64 1/15
Installing : netstandard-targeting-pack-2.1-3.1.103-1.fc32.x86_ 2/15
Installing : aspnetcore-targeting-pack-3.0-3.0.0-5.fc31.x86_64 3/15
Installing : dotnet-apphost-pack-3.0-3.0.0-5.fc31.x86_64 4/15
Installing : dotnet-hostfxr-3.0-3.0.0-5.fc31.x86_64 5/15
Installing : dotnet-targeting-pack-3.0-3.0.0-5.fc31.x86_64 6/15
Installing : dotnet-templates-3.0-3.0.100-5.fc31.x86_64 7/15
Installing : userspace-rcu-0.11.1-3.fc32.x86_64 8/15
Installing : numactl-libs-2.0.12-4.fc32.x86_64 9/15
Installing : lttng-ust-2.11.0-4.fc32.x86_64 10/15
Installing : libunwind-1.3.1-5.fc32.x86_64 11/15
Installing : libicu-65.1-2.fc32.x86_64 12/15
Installing : dotnet-runtime-3.0-3.0.0-5.fc31.x86_64 13/15
Installing : aspnetcore-runtime-3.0-3.0.0-5.fc31.x86_64 14/15
Installing : dotnet-sdk-3.0-3.0.100-5.fc31.x86_64 15/15
Running scriptlet: dotnet-sdk-3.0-3.0.100-5.fc31.x86_64 15/15
Verifying : dotnet-host-3.1.3-1.fc32.x86_64 1/15
Verifying : netstandard-targeting-pack-2.1-3.1.103-1.fc32.x86_ 2/15
Verifying : libicu-65.1-2.fc32.x86_64 3/15
Verifying : libunwind-1.3.1-5.fc32.x86_64 4/15
Verifying : lttng-ust-2.11.0-4.fc32.x86_64 5/15
Verifying : numactl-libs-2.0.12-4.fc32.x86_64 6/15
Verifying : userspace-rcu-0.11.1-3.fc32.x86_64 7/15
Verifying : aspnetcore-runtime-3.0-3.0.0-5.fc31.x86_64 8/15
Verifying : aspnetcore-targeting-pack-3.0-3.0.0-5.fc31.x86_64 9/15
Verifying : dotnet-apphost-pack-3.0-3.0.0-5.fc31.x86_64 10/15
Verifying : dotnet-hostfxr-3.0-3.0.0-5.fc31.x86_64 11/15
Verifying : dotnet-runtime-3.0-3.0.0-5.fc31.x86_64 12/15
Verifying : dotnet-sdk-3.0-3.0.100-5.fc31.x86_64 13/15
Verifying : dotnet-targeting-pack-3.0-3.0.0-5.fc31.x86_64 14/15
Verifying : dotnet-templates-3.0-3.0.100-5.fc31.x86_64 15/15
Installed:
aspnetcore-runtime-3.0-3.0.0-5.fc31.x86_64
aspnetcore-targeting-pack-3.0-3.0.0-5.fc31.x86_64
dotnet-apphost-pack-3.0-3.0.0-5.fc31.x86_64
dotnet-host-3.1.3-1.fc32.x86_64
dotnet-hostfxr-3.0-3.0.0-5.fc31.x86_64
dotnet-runtime-3.0-3.0.0-5.fc31.x86_64
dotnet-sdk-3.0-3.0.100-5.fc31.x86_64
dotnet-targeting-pack-3.0-3.0.0-5.fc31.x86_64
dotnet-templates-3.0-3.0.100-5.fc31.x86_64
libicu-65.1-2.fc32.x86_64
libunwind-1.3.1-5.fc32.x86_64
lttng-ust-2.11.0-4.fc32.x86_64
netstandard-targeting-pack-2.1-3.1.103-1.fc32.x86_64
numactl-libs-2.0.12-4.fc32.x86_64
userspace-rcu-0.11.1-3.fc32.x86_64
Complete!