• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Linux by
Q:
How can we create a local Yum repository in the location /media with the use of mounted Linux ISO image?

1 Answer

0 votes
by

To create the local yum repository you have to create the files ending with extension .repo in the location /etc/yum.repos.d

  • Syntax: [[email protected] yum.repos.d]# cat local.repo
  • [local]
  • name=RHEL6.5
  • baseurl=file:///media
  • enabled=1
  • gpgcheck=1
  • gpgkey=file:///media/RPM-GPG-KEY-redhat-release

Related questions

0 votes
asked Jan 7, 2020 in Linux by MBarbieri
0 votes
asked Aug 31, 2019 in Linux by Robin
...