File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed
docs/content/doc/usage/packages
templates/package/content Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ The following package managers are currently supported:
4444| [ NuGet] ({{< relref "doc/usage/packages/nuget.en-us.md" >}}) | .NET | ` nuget ` |
4545| [ Pub] ({{< relref "doc/usage/packages/pub.en-us.md" >}}) | Dart | ` dart ` , ` flutter ` |
4646| [ 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 ` |
4848| [ RubyGems] ({{< relref "doc/usage/packages/rubygems.en-us.md" >}}) | Ruby | ` gem ` , ` Bundler ` |
4949| [ Swift] ({{< relref "doc/usage/packages/rubygems.en-us.md" >}}) | Swift | ` swift ` |
5050| [ Vagrant] ({{< relref "doc/usage/packages/vagrant.en-us.md" >}}) | - | ` vagrant ` |
Original file line number Diff line number Diff line change 4444| [ NuGet] ({{< relref "doc/usage/packages/nuget.zh-cn.md" >}}) | .NET | ` nuget ` |
4545| [ Pub] ({{< relref "doc/usage/packages/pub.zh-cn.md" >}}) | Dart | ` dart ` , ` flutter ` |
4646| [ 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 ` |
4848| [ RubyGems] ({{< relref "doc/usage/packages/rubygems.zh-cn.md" >}}) | Ruby | ` gem ` , ` Bundler ` |
4949| [ Swift] ({{< relref "doc/usage/packages/rubygems.zh-cn.md" >}}) | Swift | ` swift ` |
5050| [ Vagrant] ({{< relref "doc/usage/packages/vagrant.zh-cn.md" >}}) | - | ` vagrant ` |
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Publish [RPM](https://rpm.org/) packages for your user or organization.
2222
2323## Requirements
2424
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.
2626
2727The following examples use ` dnf ` .
2828
@@ -79,7 +79,7 @@ The server responds with the following HTTP Status codes.
7979
8080## Delete a package
8181
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.
8383
8484```
8585DELETE https://gitea.example.com/api/packages/{owner}/rpm/{package_name}/{package_version}/{architecture}
Original file line number Diff line number Diff line change 2222
2323## 要求
2424
25- 要使用RPM注册表,您需要使用像 ` yum ` 或 ` dnf ` 这样的软件包管理器来消费软件包。
25+ 要使用RPM注册表,您需要使用像 ` yum ` , ` dnf ` 或 ` zypper ` 这样的软件包管理器来消费软件包。
2626
2727以下示例使用 ` dnf ` 。
2828
Original file line number Diff line number Diff line change @@ -3332,6 +3332,8 @@ pypi.requires = Requires Python
33323332pypi.install = To install the package using pip, run the following command:
33333333pypi.documentation = For more information on the PyPI registry, see <a target =" _blank" rel =" noopener noreferrer" href =" %s" >the documentation</a>.
33343334rpm.registry = Setup this registry from the command line:
3335+ rpm.distros.redhat = on RedHat based distributions
3336+ rpm.distros.suse = on SUSE based distributions
33353337rpm.install = To install the package, run the following command:
33363338rpm.documentation = For more information on the RPM registry, see <a target =" _blank" rel =" noopener noreferrer" href =" %s" >the documentation</a>.
33373339rubygems.install = To install the package using gem, run the following command:
Original file line number Diff line number Diff line change 44 <div class="ui form">
55 <div class="field">
66 <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>
812 </div>
913 <div class="field">
1014 <label>{{svg "octicon-terminal"}} {{.locale.Tr "packages.rpm.install"}}</label>
1115 <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>
1321 </div>
1422 </div>
1523 <div class="field">
You can’t perform that action at this time.
0 commit comments