loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

RPM Registry: Show zypper commands for SUSE based distros as well (#25981)

After RPM is supported with https://github.com/go-gitea/gitea/pull/23380
let's show the user
how to add the repo and install the RPM via all common package managers.

---------

Co-authored-by: Giteabot <teabot@gitea.io>

authored by

Dominik Heidler
Giteabot
and committed by
GitHub
2e128dd1 af22f33a

+17 -7
+1 -1
docs/content/doc/usage/packages/overview.en-us.md
··· 44 44 | [NuGet]({{< relref "doc/usage/packages/nuget.en-us.md" >}}) | .NET | `nuget` | 45 45 | [Pub]({{< relref "doc/usage/packages/pub.en-us.md" >}}) | Dart | `dart`, `flutter` | 46 46 | [PyPI]({{< relref "doc/usage/packages/pypi.en-us.md" >}}) | Python | `pip`, `twine` | 47 - | [RPM]({{< relref "doc/usage/packages/rpm.en-us.md" >}}) | - | `yum`, `dnf` | 47 + | [RPM]({{< relref "doc/usage/packages/rpm.en-us.md" >}}) | - | `yum`, `dnf`, `zypper` | 48 48 | [RubyGems]({{< relref "doc/usage/packages/rubygems.en-us.md" >}}) | Ruby | `gem`, `Bundler` | 49 49 | [Swift]({{< relref "doc/usage/packages/rubygems.en-us.md" >}}) | Swift | `swift` | 50 50 | [Vagrant]({{< relref "doc/usage/packages/vagrant.en-us.md" >}}) | - | `vagrant` |
+1 -1
docs/content/doc/usage/packages/overview.zh-cn.md
··· 44 44 | [NuGet]({{< relref "doc/usage/packages/nuget.zh-cn.md" >}}) | .NET | `nuget` | 45 45 | [Pub]({{< relref "doc/usage/packages/pub.zh-cn.md" >}}) | Dart | `dart`, `flutter` | 46 46 | [PyPI]({{< relref "doc/usage/packages/pypi.zh-cn.md" >}}) | Python | `pip`, `twine` | 47 - | [RPM]({{< relref "doc/usage/packages/rpm.zh-cn.md" >}}) | - | `yum`, `dnf` | 47 + | [RPM]({{< relref "doc/usage/packages/rpm.zh-cn.md" >}}) | - | `yum`, `dnf`, `zypper` | 48 48 | [RubyGems]({{< relref "doc/usage/packages/rubygems.zh-cn.md" >}}) | Ruby | `gem`, `Bundler` | 49 49 | [Swift]({{< relref "doc/usage/packages/rubygems.zh-cn.md" >}}) | Swift | `swift` | 50 50 | [Vagrant]({{< relref "doc/usage/packages/vagrant.zh-cn.md" >}}) | - | `vagrant` |
+2 -2
docs/content/doc/usage/packages/rpm.en-us.md
··· 22 22 23 23 ## Requirements 24 24 25 - To work with the RPM registry, you need to use a package manager like `yum` or `dnf` to consume packages. 25 + To work with the RPM registry, you need to use a package manager like `yum`, `dnf` or `zypper` to consume packages. 26 26 27 27 The following examples use `dnf`. 28 28 ··· 79 79 80 80 ## Delete a package 81 81 82 - To delete a Debian package perform a HTTP DELETE operation. This will delete the package version too if there is no file left. 82 + To delete an RPM package perform a HTTP DELETE operation. This will delete the package version too if there is no file left. 83 83 84 84 ``` 85 85 DELETE https://gitea.example.com/api/packages/{owner}/rpm/{package_name}/{package_version}/{architecture}
+1 -1
docs/content/doc/usage/packages/rpm.zh-cn.md
··· 22 22 23 23 ## 要求 24 24 25 - 要使用RPM注册表,您需要使用像 `yum` 或 `dnf` 这样的软件包管理器来消费软件包。 25 + 要使用RPM注册表,您需要使用像 `yum`, `dnf` 或 `zypper` 这样的软件包管理器来消费软件包。 26 26 27 27 以下示例使用 `dnf`。 28 28
+2
options/locale/locale_en-US.ini
··· 3328 3328 pypi.requires = Requires Python 3329 3329 pypi.install = To install the package using pip, run the following command: 3330 3330 rpm.registry = Setup this registry from the command line: 3331 + rpm.distros.redhat = on RedHat based distributions 3332 + rpm.distros.suse = on SUSE based distributions 3331 3333 rpm.install = To install the package, run the following command: 3332 3334 rubygems.install = To install the package using gem, run the following command: 3333 3335 rubygems.install2 = or add it to the Gemfile:
+10 -2
templates/package/content/rpm.tmpl
··· 4 4 <div class="ui form"> 5 5 <div class="field"> 6 6 <label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.rpm.registry"}}</label> 7 - <div class="markup"><pre class="code-block"><code>dnf config-manager --add-repo <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm.repo"></gitea-origin-url></code></pre></div> 7 + <div class="markup"><pre class="code-block"><code># {{.locale.Tr "packages.rpm.distro.redhat"}} 8 + dnf config-manager --add-repo <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm.repo"></gitea-origin-url> 9 + 10 + # {{.locale.Tr "packages.rpm.distro.suse"}} 11 + zypper addrepo <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/rpm.repo"></gitea-origin-url></code></pre></div> 8 12 </div> 9 13 <div class="field"> 10 14 <label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.rpm.install"}}</label> 11 15 <div class="markup"> 12 - <pre class="code-block"><code>dnf install {{$.PackageDescriptor.Package.Name}}</code></pre> 16 + <pre class="code-block"><code># {{.locale.Tr "packages.rpm.distro.redhat"}} 17 + dnf install {{$.PackageDescriptor.Package.Name}} 18 + 19 + # {{.locale.Tr "packages.rpm.distro.suse"}} 20 + zypper install {{$.PackageDescriptor.Package.Name}}</code></pre> 13 21 </div> 14 22 </div> 15 23 <div class="field">