---
title: "yum/zypper config"
method: GET
path: "/install/repositories/{user_id}/{repo}/config_file.repo"
tags: ["install"]
---

# yum/zypper config

`GET /install/repositories/{user_id}/{repo}/config_file.repo`

## Request

- Base URL: `https://packagecloud.io`
- URL: `https://packagecloud.io/install/repositories/{user_id}/{repo}/config_file.repo`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/cstrahan/apis/packagecloud-api/docs/install/repositories/:user_id/:repo/config_file.repo/get.ts> (a function with typed inputs; its response is checked against the schema)

Return a yum/zypper `.repo` fragment for this repository (with an embedded read token); the server sends it as `Content-Type: text/repo`. Used by the rpm and zypper setup snippets.

## Path parameters

- `user_id` string, required
- `repo` string, required

## Query parameters

- `dist` string, required
- `name` string, required
- `os` string, required

## Response `200`

A yum/zypper .repo fragment.

## Changes

- **2026-06-15** `d452247d12de`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cstrahan/apis/packagecloud-api/changes/install/repositories/:user_id/:repo/config_file.repo/get.md)

---

[API](https://skmtc.dev/cstrahan/apis/packagecloud-api.md) - [All operations](https://skmtc.dev/cstrahan/apis/packagecloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cstrahan/apis/packagecloud-api/revisions/9744ac4cffc2?raw)
