方案1
mkdir /iso
mount -o loop /soft/CentOS-7-x86_64-DVD-1511.iso /iso
rm –rf /pos.d/*
cat >> /pos.po << EOF
[base_install]
name=oracle
baseurl=file:///iso
enabled=1
gpgcheck=0
EOF
vi /etc/rc.local
mount -o loop /soft/CentOS-7-x86_64-DVD-1511.iso /iso
yum clean all
yum list|grep has
方案2
[oracle@wgrac01 ~]$ more /etc/yum
yum/ f pos.d/
[oracle@wgrac01 ~]$ more /pos.d/centos-
popo po po
po po po
[oracle@wgrac01 ~]$ more /pos.po
# po
#
# the mirror system uses the connecting ip address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. you should use this for centos updates
# unless you are manually picking other mirrors.
#
# if the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=centos-$releasever - base
baseurl=file:///iso
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-7
[oracle@wgrac01 ~]$ cd /isd
-bash: cd: /isd: no such file or directory
[oracle@wgrac01 ~]$ cd /iso
[oracle@wgrac01 iso]$ ls
centos_buildtag eula images liveos repodata rpm-gpg-key-centos-testing-7
efi gpl isolinux packages rpm-gpg-key-centos-7 trans.tbl
[oracle@wgrac01 iso]$
本文发布于:2024-02-01 03:47:48,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170673047033631.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |