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.

This entry was posted in System Administration, Systems Analysis on by .

About phil

My name is Phil Lembo. In my day job I’m an enterprise IT architect for a leading distribution and services company. The rest of my time I try to maintain a semi-normal family life in the suburbs of Raleigh, NC. E-mail me at philipATlembobrothersDOTcom. The opinions expressed here are entirely my own and not those of my employers, past, present or future (except where I quote others, who will need to accept responsibility for their own rants).