为 scylladb 创建本地 yum repo 并将其安装在专用网络中?
Creating local yum repo for scylladb and install it within private network?
我想在 Centos 和 Redhat 机器上安装 scylladb。我找到了相同 here 的安装说明,但这涉及复制 .repo
文件,然后使用 yum 安装它,即它使用 public 互联网)。
我想创建一个本地 yum 存储库,不想连接到 public 互联网,而是只连接到我公司的网络。这需要我自己有可用的 rpm,将其上传到我的内部系统,然后使用 yum 指令,但我在网上的任何地方都找不到 scylladb 的 rpm。
有人可以帮助解决如何获得 rpm 或任何解决方法吗?
我的速记:
yum install createrepo
mkdir /path/to/mylocalrepo
# Put all the RPMs in the mylocalrepo dir
cd /path/to/mylocarepo
createrepo .
然后使用它:
vi /etc/yum.repos.d/localscylla.repo
输入:
[scylla]
name=localScylla
baseurl=file:///path/to/mylocalrepo
enabled=1
gpgcheck=0
然后运行
yum clean all
yum install scylla
当然你可以使用 reposync 从你的 /etc/yum.repos.d/scylla.repo(你通过注册获得)镜像
参见 https://access.redhat.com/solutions/23016
我想在 Centos 和 Redhat 机器上安装 scylladb。我找到了相同 here 的安装说明,但这涉及复制 .repo
文件,然后使用 yum 安装它,即它使用 public 互联网)。
我想创建一个本地 yum 存储库,不想连接到 public 互联网,而是只连接到我公司的网络。这需要我自己有可用的 rpm,将其上传到我的内部系统,然后使用 yum 指令,但我在网上的任何地方都找不到 scylladb 的 rpm。
有人可以帮助解决如何获得 rpm 或任何解决方法吗?
我的速记:
yum install createrepo
mkdir /path/to/mylocalrepo
# Put all the RPMs in the mylocalrepo dir
cd /path/to/mylocarepo
createrepo .
然后使用它:
vi /etc/yum.repos.d/localscylla.repo
输入:
[scylla]
name=localScylla
baseurl=file:///path/to/mylocalrepo
enabled=1
gpgcheck=0
然后运行
yum clean all
yum install scylla
当然你可以使用 reposync 从你的 /etc/yum.repos.d/scylla.repo(你通过注册获得)镜像 参见 https://access.redhat.com/solutions/23016