( https://www.ibm.com/support/knowledg...yum_repos.html )
準備一部 FTP/NFS/WWW 主機,將安裝光碟內的所有檔案與目錄上傳到主機,並分享使其他電腦可以存取。
mount -o loop rhel-server-7.3-ppc64le-dvd.iso /mnt/DVD cp -r /mnt/DVD/* /mnt/tpeitpfs02_nas/redhat_7.3_ppc64_le/
本地端套件庫主機建置完成了。
其他 Linux 主機要存取這個套件庫,新增 /etc/yum.repos.d/rhel-media.repo
[rhel-media] name=name=Red Hat Enterprise Linux $releasever - Media baseurl=ftp://10.10.1.115/LINUX_REPO/redhat_7.3_ppc64_le/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
測試連線
yum repolist
如有額外套件要放入套件庫,步驟是:
mkdir /mnt/tpeitpfs02_nas/redhat_7.3_ppc64_le/optional/Packages cp your-packages.rpm /mnt/tpeitpfs02_nas/redhat_7.3_ppc64_le/optional/Packages createrepo /mnt/tpeitpfs02_nas/redhat_7.3_ppc64_le/optional
Images 0 | ||
---|---|---|
No images to display in the gallery. |