星期四, 12月 04, 2014

如何在CentOS 6.5 建立local yum server

rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

rpm -ivh createrepo-0.9.9-18.el6.noarch.rpm

rpm -ivh vsftpd-2.2.2-11.el6_4.1.x86_64.rpm

---

vi /etc/yum.repod.d/CentOS-Media.repo

 

# CentOS-Media.repo

#

# This repo can be used with mounted DVD media, verify the mount point for

# CentOS-6. You can use this repo and yum to install items directly off the

# DVD ISO that we release.

#

# To use this repo, put in your DVD and use it with the other repos too:

# yum --enablerepo=c6-media [command]

#

# or for ONLY the media repo, do this:

#

# yum --disablerepo=\* --enablerepo=c6-media [command]

[c6-media]

name=CentOS-$releasever - Media

baseurl=file:///media/CentOS_6.5_Final

 

## Add the following lines ##

file:///repos/CentOS

gpgcheck=1

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

yum groupinstall "Development tools"

 

 

 

rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64rpm

 

edit /etc/sysctl.conf

kernel.randomize_va_space=0

 

Ref:

http://iamdatabase.blogspot.tw/2013/06/db2-dbt3534w-db2prereqcheck-utility.html

沒有留言:

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...