The reason why I’m doing this is because of my experience as a server support in managing some CentOS-based servers. I personally prefer to choose a minimum instalation due to hard-drive usage efficiency. It looks nothing is wrong. There is nothing to worry about. BUT, in the other hand, my company has a policy that restrict every server to access the internet. And now, I HAVE A PROBLEM OF INSTALLING EVERYTHING ON MY CENTOS- BASED SERVERS because the default repository of CentOS is from the internet. That’s why I MUST do this.

Here are the steps:

1. (Make a directory where CDROM will be mounted. In this case, I will make it inside a /media/ directory. After that, mount the CDROM to the folder we have made earlier and don’t forget to check if it has been mounted or not)

mkdir /media/cdrom
mount /dev/cdrom /media/cdrom
df -h

2. If it has been mounted successfully, we have to enter /etc/yum.repos.d/ directory to make a repo.local file and also fill it with a code like this

cd /etc/yum.repos.d
vi repo.local

name=Local Repository

4. Keep the file we made earlier inside the /etc/yum.repos.d/ directory. Other than that, delete or move it.

mv CentOS-Base.repo CentOS-CR.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo CentOS-Sources.repo CentOS- Vault.repo /home/_ariefnh/backup/repo

5. And now, we try to install telnet or any application you want from the CDROM