tencent cloud


RPM Repository

Last updated: 2022-03-30 10:08:16

    This document describes how to store RPM artifacts in CODING-AR for centralized artifact management and version control. The following sections introduce how to create an artifact, configure authentication, and pull and push artifacts.

    Open CODING-AR

    1. Log in to the CODING Console and click Use Now to go to CODING page.
    2. Click in the upper-right corner to open the project list page and click a project icon to open the project.
    3. In the menu on the left, click Artifact Management.



    Before you begin:

    • Prepare a Linux environment.
    • Create an artifact repository (see Basic Operations).
    • Select RPM as the repository type.

    Initialize a Local RPM Project

    RPM is installed in Linux by default. You can run rpm commands in a Linux terminal directly. To use rpm commands in other operating systems, use Docker to install CentOS:

    docker run -it --name centos centos:8 /bin/bash

    Download a Demo Project

    Visit the RPM artifact website to search for an artifact and download and install it.

    For example:

    wget -N --no-check-certificate "https://www.rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/h/hello-2.10-5.fc34.aarch64.rpm" && rpm -i hello-2.10-5.fc34.aarch64.rpm

    Configure Authentication Information

    Click Generate configuration from access token in "Guide". A personal token will be generated as your access credential. You can manage your personal token in Personal Account Settings > Access Token.

    After entering your login password, copy the configuration generated to the local /etc/yum.repos.d/rpm-go.repo file. If this file does not exist, create one.

    Push an Artifact

    Run the rpm publish command to push an RPM package.

    curl -u [Username/Email] -X POST [Repository URL in the Push Guide] -T [Artifact Name].rpm
    After the artifact is pushed successfully, refresh the page to view the latest artifacts.

    Pull an Artifact

    Run the command in the guide to pull an artifact.

    Configure a Proxy

    RPM repositories have a default proxy address. You can configure other addresses.

    Configure the remote proxy repository URL, pull artifacts in the repository to the local machine, and the artifacts will be automatically backed up to CODING-AR.


    If CODING-AR does not automatically store RPM artifacts pulled from the proxy, check:

    • Whether you have the permission to push artifacts to this repository.
    • Whether the artifacts already exist in your local cache.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support