LINUX系统管理

阅读: 评论:0

LINUX系统管理

LINUX系统管理

    1. 配置yum

方案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-
po       

po  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小时内删除。

标签:系统   LINUX
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23