#!/bin/bash

Author :snipelinux

date :2016-12-12

umount /dev/sr0

mkdir /media/cdrom

mount /dev/cdrom /media/cdrom/

cd /etc/yum.mepos.d/

mkdir snipelinux

mv .r sniplinux

cp snipelinux/M ./

sed -i '20 s/0/1/' CentOS-Media.repo

yum -y clean all

yum makecache