December 29 2015

配置本地yum源

[root@rm ~]# cd /u01/
[root@rm u01]# mkdir iso
[root@rm u01]# cd iso/
[root@rm iso]# mkdir server
[root@rm ~]# cd /etc/
[root@rm etc]# cd yum.repos.d/
[root@rm yum.repos.d]# cp rhel-debuginfo.repo rhel-debuginfo.repo.bak
[root@rm yum.repos.d]# vi rhel-debuginfo.repo
[root@rm yum.repos.d]# more rhel-debuginfo.repo
[rhel]
name=Red Hat Enterprise Linux
baseurl=file:///u01/iso/server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@rm yum.repos.d]# mount /dev/cdrom /u01/iso/server
mount: block device /dev/cdrom/Server is write-protected, mounting read-only
[root@rm yum.repos.d]# mount /dev/cd
yum install -y unixODBC



Copyright 2019. All rights reserved.

Posted 2015年12月29日 by ucjmh in category "linux

Leave a Reply

Your email address will not be published. Required fields are marked *