为 scylladb 创建本地 yum 存储库并将其安装在专用网络中?

RKM*_*RKM 3 rpm yum scylla

我想在 Centos 和 Redhat 机器上安装 scylladb。我在这里找到了相同的安装说明,但这涉及复制.repo文件,然后使用 yum 安装它,即它使用公共互联网)。

我想创建一个本地 yum 存储库,不想连接到公共互联网,而是只连接到我的公司网络。这将要求我自己有可用的 rpm,将其上传到我的内部系统中,然后使用 yum 指令,但我在网上的任何地方都找不到 scylladb 的 rpm。

有人可以帮助了解如何获得 rpm 或任何解决方法吗?

Lub*_*bos 5

我的快速笔记:

yum install createrepo
mkdir /path/to/mylocalrepo
  # Put all the RPMs in the mylocalrepo dir
cd /path/to/mylocarepo
createrepo .
Run Code Online (Sandbox Code Playgroud)

然后使用它:

vi /etc/yum.repos.d/localscylla.repo
Run Code Online (Sandbox Code Playgroud)

# 输入这个:

[scylla]
name=localScylla
baseurl=file:///path/to/mylocalrepo
enabled=1
gpgcheck=0
Run Code Online (Sandbox Code Playgroud)

然后运行

yum clean all
yum install scylla
Run Code Online (Sandbox Code Playgroud)

当然,您可以使用 reposync 从您的 /etc/yum.repos.d/scylla.repo(您通过注册获得)镜像,请参阅https://access.redhat.com/solutions/23016

第一个