0
0
mirror of https://gitea.com/gitea/docs.git synced 2025-05-04 11:11:32 +00:00
Files
appleboy dbfa0ba454 docs: add zh-tw folder (#195)
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/195
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: appleboy <appleboy.tw@gmail.com>
Co-committed-by: appleboy <appleboy.tw@gmail.com>
2025-04-04 23:28:16 +00:00

2.6 KiB
Raw Permalink Blame History

date, slug, sidebar_position
date slug sidebar_position
2021-07-20T00:00:00+00:00 conan 20

Conan 软件包注册表

为您的用户或组织发布 Conan 软件包。

要求

要使用 conan 软件包注册表,您需要使用 conan 命令行工具来消费和发布软件包。

配置软件包注册表

要注册软件包注册表,您需要配置一个新的 Conan remote

conan remote add {remote} https://gitea.example.com/api/packages/{owner}/conan
conan user --remote {remote} --password {password} {username}
参数 描述
remote 远程名称。
username 您的 Gitea 用户名。
password 您的 Gitea 密码。如果您使用 2FA 或 OAuth请使用个人访问令牌替代密码。
owner 软件包的所有者。

例如:

conan remote add gitea https://gitea.example.com/api/packages/testuser/conan
conan user --remote gitea --password password123 testuser

发布软件包

通过运行以下命令发布 Conan 软件包:

conan upload --remote={remote} {recipe}
参数 描述
remote 远程名称
recipe 要上传的 recipe

For example:

conan upload --remote=gitea ConanPackage/1.2@gitea/final

Gitea Conan 软件包注册表支持完整的版本修订

安装软件包

要从软件包注册表中安装Conan软件包请执行以下命令

conan install --remote={remote} {recipe}
参数 描述
remote 远程名称
recipe 要下载的 recipe

例如:

conan install --remote=gitea ConanPackage/1.2@gitea/final

支持的命令

conan install
conan get
conan info
conan search
conan upload
conan user
conan download
conan remove