You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Artifactory 5.4.6环境下如何配置YUM客户端使用RPM虚拟仓库

Configuring YUM Client for Artifactory 5.4.6 RPM Virtual Repository

Hey there! I’ve worked with Artifactory 5.x quite a bit, so let’s break down exactly how to get your YUM client pointing to that virtual RPM repo you’ve set up.

Step 1: Create a YUM Repository Configuration File

On your YUM client machine, create a new .repo file in the /etc/yum.repos.d/ directory. Let’s name it something descriptive, like artifactory-virtual-rpm.repo.

Use your favorite editor (like vi or nano) to add the following content, replacing placeholders with your actual Artifactory details:

[artifactory-virtual-rpm]
name=Artifactory Virtual RPM Repository
baseurl=http://<your-artifactory-server-ip-or-domain>:8081/artifactory/api/yum/<your-virtual-repo-name>
enabled=1
gpgcheck=0
# Uncomment and fill these if your repo requires authentication
# username=<your-artifactory-username>
# password=<your-artifactory-api-key-or-password>

Note: If your Artifactory uses HTTPS, swap http:// for https:// in the baseurl. Using an API key (generated from your Artifactory user profile) instead of a plaintext password is way more secure.

Step 2: Verify the Repository Setup

First, clear YUM’s cached data to ensure it picks up the new repo:

yum clean all

Then check if the repo is recognized:

yum repolist

You should see artifactory-virtual-rpm listed with the count of available packages.

Step 3: Test the Configuration

To confirm everything works, try searching for a package hosted in your virtual repo:

yum search <target-package-name>

Or test installing a package:

yum install <target-package-name>

Quick Troubleshooting Tips

  • If you hit auth errors, double-check your username and API key/password in the .repo file.
  • If the repo doesn’t show up in repolist, verify the baseurl is correct—test accessing it directly via a browser or curl to confirm reachability.
  • For Artifactory 5.4.6 specifically, make sure your virtual repo is configured to include your local and remote RPM repos correctly (check this in the Artifactory web UI under Repositories > Virtual).

内容的提问来源于stack exchange,提问作者Vishwa

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 10:06:13