File tree 6 files changed +17
-7
lines changed
docs/content/doc/usage/packages
templates/package/content
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:
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 ` |
Original file line number Diff line number Diff line change 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 ` |
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.
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,7 +79,7 @@ The server responds with the following HTTP Status codes.
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}
Original file line number Diff line number Diff line change 22
22
23
23
## 要求
24
24
25
- 要使用RPM注册表,您需要使用像 ` yum ` 或 ` dnf ` 这样的软件包管理器来消费软件包。
25
+ 要使用RPM注册表,您需要使用像 ` yum ` , ` dnf ` 或 ` zypper ` 这样的软件包管理器来消费软件包。
26
26
27
27
以下示例使用 ` dnf ` 。
28
28
Original file line number Diff line number Diff line change @@ -3332,6 +3332,8 @@ pypi.requires = Requires Python
3332
3332
pypi.install = To install the package using pip, run the following command:
3333
3333
pypi.documentation = For more information on the PyPI registry, see <a target =" _blank" rel =" noopener noreferrer" href =" %s" >the documentation</a>.
3334
3334
rpm.registry = Setup this registry from the command line:
3335
+ rpm.distros.redhat = on RedHat based distributions
3336
+ rpm.distros.suse = on SUSE based distributions
3335
3337
rpm.install = To install the package, run the following command:
3336
3338
rpm.documentation = For more information on the RPM registry, see <a target =" _blank" rel =" noopener noreferrer" href =" %s" >the documentation</a>.
3337
3339
rubygems.install = To install the package using gem, run the following command:
Original file line number Diff line number Diff line change 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">
You can’t perform that action at this time.
0 commit comments