LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-07-2016, 02:17 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Thumbs down How to create a local repository?


Hello.
I want to create a repository that read my Fedora 23 DVD and install packages from it.
According to the "https://fedoraproject.org/wiki/FedoraCD#Using_the_DVD_as_a_Source", I created a directory under "/mnt" and mount my DVD ISO to it. Then, I created a file with the name "my.repo" under "/etc/yum.repos.d/" and filed it like below:
Code:
[fedora-local] 
name=My-DVD
baseurl=file:///mnt/dvd/
enabled=1
gpgcheck=1
but Not worked and my package installed from internet. How can I solve it? How can I find my DVD name?
 
Old 05-07-2016, 09:14 PM   #2
tomwest
Member
 
Registered: Aug 2013
Distribution: debian
Posts: 63

Rep: Reputation: Disabled
You could try adding: priority=1 to your fedora-local configs. That may make that repo the first to be searched. Alternatively, you could disable the other repos with: enabled=0.
 
Old 05-08-2016, 12:24 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
How can I find my DVD name?
 
Old 05-08-2016, 11:11 PM   #4
tomwest
Member
 
Registered: Aug 2013
Distribution: debian
Posts: 63

Rep: Reputation: Disabled
You could run, in a terminal:
Code:
lsblk
which results, on one of my computers as:
Code:
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   200M  0 part /boot/efi
├─sda2   8:2    0    50G  0 part /
├─sda3   8:3    0     6G  0 part [SWAP]
└─sda4   8:4    0 875.3G  0 part /home
sr0     11:0    1  1024M  0 rom
The dvd is the "rom" (read only memory), in which case you pre-pend /dev/, hence the dvd is /dev/sr0 in this case.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Local CentOS Repository sorvad Red Hat 4 11-04-2012 01:00 PM
How to create Local YUM Repository? your_shadow03 Linux - Server 9 04-01-2012 10:25 AM
How to create a local repository? chipperfield Linux - Newbie 6 04-14-2010 12:04 AM
can i create a local yum repository? Sharaz Linux - General 5 01-21-2008 01:51 PM
Faluire to create local repository JackieBrown Debian 1 08-22-2006 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration