this is obsolete doc -- see http://doc.nethence.com/ instead

Setting up local network redhat, centos, vmware repositories 

 

RHEL7 repo 

cd /etc/yum.repos.d/ 

#mkdir .trash/ 

#mv * .trash/ 

cat > rhel7.repo <<EOF 

[rhel7] 

name=srvinstall install server 

baseurl=http://srvinstall/RHEL7/ 

enabled=1 

gpgcheck=1 

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release 

EOF 

yum install screen wget ksh elinks curl lftp mc 

 

RHEL6 repo 

cd /etc/yum.repos.d/ 

#mkdir .trash/ 

#mv * .trash/ 

cat > rhel6.repo <<EOF 

[rhel6] 

name=srvinstall install server 

baseurl=http://srvinstall/RHEL6/ 

enabled=1 

gpgcheck=1 

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release 

EOF 

 

CentOS 7 repo 

cd /etc/yum.repos.d/ 

mkdir trash/ 

mv * trash/ 

cat > centos7.repo <<EOF 

[centos7] 

name=srvinstall install server 

baseurl=http://srvinstall/CentOS7/ 

enabled=1 

gpgcheck=1 

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

EOF 

 

CentOS 6 repo 

cd /etc/yum.repos.d/ 

mkdir .trash/ 

mv * .trash/ 

cat > centos6.repo <<EOF 

[centos6] 

name=srvinstall install server 

baseurl=http://srvinstall/CentOS6/ 

enabled=1 

gpgcheck=1 

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

EOF 

 

EPEL open-vm-tools for RHEL6/CentOS6 

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm 

rpm -ivh epel-release-latest-6.noarch.rpm 

yum -y install open-vm-tools 

/etc/init.d/vmtoolsd start 

chkconfig --list | grep tools 

 

RHEL7 open-vm-tools 

You can use open-vm-tools from the official repository. No need to use the vmware or EPEL repositories. 

yum install open-vm-tools 

systemctl list-unit-files | grep -i tools 

systemctl status vmtoolsd 

 

EPEL for RHEL7/CentOS7 

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 

rpm -ivh epel-release-latest-7.noarch.rpm 

 

VMware RHEL6x64 - not needed 

cd /etc/yum.repos.d/ 

cat > vmware_rhel6.repo <<EOF 

[vmware-tools] 

name=VMware Tools for Red Hat Enterprise Linux $releasever – $basearch 

baseurl=http://packages.vmware.com/tools/esx/latest/rhel6/x86_64/ 

enabled=1 

gpgcheck=1 

gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub 

EOF 

yum install vmware-tools-esx-nox vmware-tools-services 

ls -l /etc/init/vmware-tools-services.conf 

reboot 

 

VMware RHEL7x64 - not needed 

cd /etc/yum.repos.d/ 

cat > vmware_rhel7.repo <<EOF 

[vmware-tools] 

name = VMware Tools for Red Hat Enterprise Linux $releasever – $basearch 

baseurl = http://packages.vmware.com/packages/rhel7/x86_64/ 

enabled = 1 

gpgcheck = 1 

EOF