当前位置:网站首页>yum offline installation

yum offline installation

2022-08-06 07:53:18shy_snow

yum offline installation

Download the installation package on the connected machine and copy it to the offline machine.Then, publish the offline installation package directory as a local software source with the help of createrepo and yum makecache.Finally, install the software using yum on the offline machine.
The following takes the offline installation of ceph-deploy as an example to explain the specific steps:

1. Download the createrepo offline package to the local and install createrepo

Link: https://pan.baidu.com/s/1BRa27dqamohwbFQ5ghsdAQ?pwd=q1zk
Extraction code: q1zk
https://download.csdn.net/download/shy_snow/86338120

unzip createrepo-0.9.9-28.el7.zipcd createrepo/rpm -ivh deltarpm-3.6-3.el7.x86_64.rpm python-deltarpm-3.6-3.el7.x86_64.rpm createrepo-0.9.9-28.el7.noarch.rpm

2. Download the yum installation package on a host with the same network environment

yum install yum-plugin-downloadonly -y#For example download cephyum install -y --downloadonly --downloaddir=/tmp/ceph ceph-deploy

Note: The path of the downloaded offline installation package: http://192.168.129.116:7200/centos-7.6.1810-3.10.0-957/

3. Transfer the download directory in the third step to the offline host, createrepo to build the local software source, and open the local software source

#yum downloaded offline installation package is copied to /tmp/ceph,#Use the createrepo command to use the /tmp/ceph directory as the local software source directorycreaterepo /tmp/ceph# Configure ceph.repo to specify the use of local /tmp/ceph/ as the installation package search directorycat <<EOF > /etc/yum.repos.d/ceph.repo [ceph] name=ceph baseurl=file:///tmp/ceph/ gpgcheck=0 enabled=1 EOF#Add the configuration information to the yum cache, you can also yum clean all to clear the cache and then yum makecache yum makecache

4. Use yum to install software on offline hosts

yum install -y ceph-deploy

Other software does the same thing.

原网站

版权声明
本文为[shy_snow]所创,转载请带上原文链接,感谢
https://chowdera.com/2022/218/202208060747437754.html

随机推荐