Configure Local Yum repos not completed

Hi
I tried to finish this task, but something wrong couldn’t able finish.
Could you please share steps of this task so that i can understand my mistakes.

go to cd /etc/yum.repos.d/
sudo vi yum_local.repo
write following steps which is mention in tasks description :–

[file-id-name]
name=file-name
baseurl=path of local packages location
gpgcheck=0

sudo yum clean all
and try to install any packages
sudo yum install nmap -y