2023-05-05 22:33:37 +02:00
|
|
|
{{if eq .PackageDescriptor.Package.Type "rpm"}}
|
2023-09-25 10:56:50 +02:00
|
|
|
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.installation"}}</h4>
|
2023-05-05 22:33:37 +02:00
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui form">
|
|
|
|
<div class="field">
|
2023-09-25 10:56:50 +02:00
|
|
|
<label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.rpm.registry"}}</label>
|
|
|
|
<div class="markup"><pre class="code-block"><code># {{ctx.Locale.Tr "packages.rpm.distro.redhat"}}
|
2023-07-20 17:37:31 +02:00
|
|
|
dnf config-manager --add-repo <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm.repo"></gitea-origin-url>
|
|
|
|
|
2023-09-25 10:56:50 +02:00
|
|
|
# {{ctx.Locale.Tr "packages.rpm.distro.suse"}}
|
2023-07-20 17:37:31 +02:00
|
|
|
zypper addrepo <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm.repo"></gitea-origin-url></code></pre></div>
|
2023-05-05 22:33:37 +02:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-09-25 10:56:50 +02:00
|
|
|
<label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.rpm.install"}}</label>
|
2023-05-05 22:33:37 +02:00
|
|
|
<div class="markup">
|
2023-09-25 10:56:50 +02:00
|
|
|
<pre class="code-block"><code># {{ctx.Locale.Tr "packages.rpm.distro.redhat"}}
|
2023-07-20 17:37:31 +02:00
|
|
|
dnf install {{$.PackageDescriptor.Package.Name}}
|
|
|
|
|
2023-09-25 10:56:50 +02:00
|
|
|
# {{ctx.Locale.Tr "packages.rpm.distro.suse"}}
|
2023-07-20 17:37:31 +02:00
|
|
|
zypper install {{$.PackageDescriptor.Package.Name}}</code></pre>
|
2023-05-05 22:33:37 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-09-25 10:56:50 +02:00
|
|
|
<label>{{ctx.Locale.Tr "packages.registry.documentation" "RPM" "https://docs.gitea.com/usage/packages/rpm/" | Safe}}</label>
|
2023-05-05 22:33:37 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if or .PackageDescriptor.Metadata.Summary .PackageDescriptor.Metadata.Description}}
|
2023-09-25 10:56:50 +02:00
|
|
|
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.about"}}</h4>
|
2023-05-05 22:33:37 +02:00
|
|
|
{{if .PackageDescriptor.Metadata.Summary}}<div class="ui attached segment">{{.PackageDescriptor.Metadata.Summary}}</div>{{end}}
|
|
|
|
{{if .PackageDescriptor.Metadata.Description}}<div class="ui attached segment">{{.PackageDescriptor.Metadata.Description}}</div>{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|