2023-05-06 02:03:37 +05:30
|
|
|
{{if eq .PackageDescriptor.Package.Type "rpm"}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.installation"}}</h4>
|
2023-05-06 02:03:37 +05:30
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui form">
|
|
|
|
<div class="field">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.rpm.registry"}}</label>
|
2024-01-19 17:07:10 +05:30
|
|
|
<div class="markup"><pre class="code-block"><code>{{- if gt (len .Groups) 1 -}}
|
|
|
|
# {{ctx.Locale.Tr "packages.rpm.repository.multiple_groups"}}
|
|
|
|
|
|
|
|
{{end -}}
|
|
|
|
# {{ctx.Locale.Tr "packages.rpm.distros.redhat"}}
|
|
|
|
{{- range $group := .Groups}}
|
|
|
|
{{- if $group}}{{$group = print "/" $group}}{{end}}
|
2024-03-15 07:35:31 +05:30
|
|
|
dnf config-manager --add-repo <origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm{{$group}}.repo"></origin-url>
|
2024-01-19 17:07:10 +05:30
|
|
|
{{- end}}
|
2023-07-20 21:07:31 +05:30
|
|
|
|
2024-01-12 08:46:05 +05:30
|
|
|
# {{ctx.Locale.Tr "packages.rpm.distros.suse"}}
|
2024-01-19 17:07:10 +05:30
|
|
|
{{- range $group := .Groups}}
|
|
|
|
{{- if $group}}{{$group = print "/" $group}}{{end}}
|
2024-03-15 07:35:31 +05:30
|
|
|
zypper addrepo <origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm{{$group}}.repo"></origin-url>
|
2024-01-19 17:07:10 +05:30
|
|
|
{{- end}}</code></pre></div>
|
2023-05-06 02:03:37 +05:30
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.rpm.install"}}</label>
|
2023-05-06 02:03:37 +05:30
|
|
|
<div class="markup">
|
2024-01-12 08:46:05 +05:30
|
|
|
<pre class="code-block"><code># {{ctx.Locale.Tr "packages.rpm.distros.redhat"}}
|
2023-07-20 21:07:31 +05:30
|
|
|
dnf install {{$.PackageDescriptor.Package.Name}}
|
|
|
|
|
2024-01-12 08:46:05 +05:30
|
|
|
# {{ctx.Locale.Tr "packages.rpm.distros.suse"}}
|
2023-07-20 21:07:31 +05:30
|
|
|
zypper install {{$.PackageDescriptor.Package.Name}}</code></pre>
|
2023-05-06 02:03:37 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2024-02-22 22:32:33 +05:30
|
|
|
<label>{{ctx.Locale.Tr "packages.registry.documentation" "RPM" "https://forgejo.org/docs/latest/user/packages/rpm/"}}</label>
|
2023-05-06 02:03:37 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-01-19 17:07:10 +05:30
|
|
|
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.rpm.repository"}}</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<table class="ui single line very basic table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="collapsing"><h5>{{ctx.Locale.Tr "packages.rpm.repository.architectures"}}</h5></td>
|
|
|
|
<td>{{StringUtils.Join .Architectures ", "}}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2023-05-06 02:03:37 +05:30
|
|
|
{{if or .PackageDescriptor.Metadata.Summary .PackageDescriptor.Metadata.Description}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.about"}}</h4>
|
2023-05-06 02:03:37 +05:30
|
|
|
{{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}}
|