20140904 using the fedora 20 install dvd as a package repository - plembo/onemoretech GitHub Wiki

title: Using the Fedora 20 Install DVD as a Package Repository link: https://onemoretech.wordpress.com/2014/09/04/using-the-fedora-20-install-dvd-as-a-package-repository/ author: phil2nc description: post_id: 8344 created: 2014/09/04 12:49:33 created_gmt: 2014/09/04 16:49:33 comment_status: closed post_name: using-the-fedora-20-install-dvd-as-a-package-repository status: publish post_type: post

Using the Fedora 20 Install DVD as a Package Repository

The office where I normally work has some very real constraints on available Internet bandwidth right now. As a result I decided to do my initial rebuild of the workstation I keep there using the (4 Gb large) Fedora 20 DVD, deferring a mass system update to after close-of-business (when I would be able to ssh in over the corporate VPN to run a yum update). My recipe follows. On the initial install of Fedora 20 from the DVD I chose "MATE Desktop" on the "Software Selection" page (see 9.10 Software Selection in the Fedora 20 Installation Guide for a picture of what that looks like). The nice thing about that particular package group is that it defaults to lightdm rather than the ubiquitous (and problematic) gdm for its desktop manager. I specifically did not add any other groups because I wanted to be selective about the software I installed beyond the basic desktop bits. Once the initial installation was completed, I went in and did the basic housekeeping required for any rebuild, including copying my backups back onto the newly partitioned system disk (my previous install of CentOS had wiped out my original ext4 formatted partitions for the default xfs type, so during setup I removed those and re-partitioned for Fedora-default ext4). Then I remounted the DVD to /media so it would be on a short, simple path that could be mapped in a custom /etc/yum.repos.d/fedora-dvd.repo file.

mount /dev/sr0 /media/



# fedora-dvd.repo
[fedora-dvd]
name=fedora-dvd
baseurl=file:///media/
enabled=1
gpgcheck=1

I then created a /etc/yum.repos.d/archive folder and temporarily moved the other .repo files under it, to confine yum operations to the DVD. Finally, I ran a "yum repolist all" to have yum do an inventory of the available packages on the DVD. For the most part the process after that involved installing individual packages I knew I'd need. The one big package group I installed was "Fedora Eclipse", which included not only the Eclipse IDE compiled for Fedora but also OpenJDK and related packages. My machine being a Dell Optiplex 790, I of course also had to add "reboot=pci" to my kernel command line (following the procedure detailed here) so that the system would actually complete reboots rather than simply halting on the way down.

Copyright 2004-2019 Phil Lembo