大网数据广告活动
服务器运维问答

Local RPM/YUM repository on Debian

· 52CE 我爱测

I manage a mix of Debian and CentOS servers. I have a local DEB repository, kept up-to-date with apt-mirror, on a Debian server. Because this server has so much extra HD space, of 250GB at the moment, I would like to use it as a …

问题原文

原帖链接 · Chris Woelkers · CC BY-SA 3.0

I manage a mix of Debian and CentOS servers. I have a local DEB repository, kept up-to-date with apt-mirror, on a Debian server. Because this server has so much extra HD space, of 250GB at the moment, I would like to use it as a local RPM repository as well.

The only issue is how to do so. All of the local YUM repository info I have found is for working on an RPM distro. Are the tools available for Debian, would yum-utils and createrepo work, or will I have to create a new server with CentOS?

已采纳解答

原帖链接 · Ryan Babchishin · CC BY-SA 3.0

Debian will be fine to run a mirror/repo.

This how to has what looks to be most of the instructions. Though a google search provides plenty of information on the topic too.

Install your own local Repo server on CentOS 7 https://deviantengineer.com/2016/03/repo-centos7/

The Debian package createrepo exists: https://packages.debian.org/jessie/createrepo

apt-get install createrepo

And yum-utils: https://packages.debian.org/jessie/yum-utils

apt-get install yum-utils

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-09-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。