Configure Local Yum repos Kodekloud

 


Question: Need to configure local yum repos and install samba in backup server

Solution:

At first login to backup server as root

ssh clint@stbkp01

sudo su

Then configure local yum repos according to question

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

[localyum]
name=localyum
baseurl=file:///packages/downloaded_rpms/
enabled = 1
gpgcheck = 0

yum clean all
yum repolist

At last install the software mention in the question using this command


yum install --disablerepo="*" --enablerepo="localyum" samba

Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment