Re: how to deal with second CD using network install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "PM" == Peter Matulis <PMatulis@xxxxxxx> writes:

PM> So far I have used the cdrom install method where the user is told
PM> to insert the second CD.  For a network install how is this delt
PM> with?

I unpack both CDs into one directory on my install server.  Then I add
all of my local packages and all of the errata, clean up any
duplicates/superceded versions [1] and run genhdlist.  (Install the
anaconda-runtime package to get genhdlist.)

1) I use the following script to locate duplicate RPMs in the current
   directory:

#!/usr/bin/perl -w
 
opendir DIR, ".";
while (defined($i = readdir(DIR))) {
  next unless $i =~ /\.rpm$/;
 
  # Take apart the filename
  ($name, $vers, $rel, $arch) = $i =~ /(.*)-(.*)-(.*)\.(.*)\.rpm/;
 
  # Stuff the relevant info in a hash
  $pkg{"$name($arch)"} ||= [];
  push @{$pkg{"$name($arch)"}}, [$vers, $rel, $i];
}
 
# Now go over %pkg and look for duplicates
for $p (sort keys %pkg) {
   if (@{$pkg{$p}} > 1) {
     print "$p\n";
     print "  /- Dups exist --\n";
     for $v (@{$pkg{$p}}) {
       print "  |$v->[2]\n";
    }
    print "\n";
  }
}

 - J<





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux