Toggle navigation
Images.Elk.pl
kickstart howto 14 tjtc5g7tziulutu37xcwdwb5txoozlylo46aaei TJTC5G7TZIULUTU37XCWDWB5TXOOZLYLO46AAEI
RedHat Linux KickStart HOWTO: Appendix 14. AppendixHere is Eric's script for munging updated RPMS into the redhat distribution area: #!/usr/bin/perl # $redhatdir="/cdrom/i386"; $rpmdir="/cdrom/i386/RedHat/RPMS/"; $updatedir="/cdrom/updates/"; @OTHERDIR=($updatedir); foreach $dir (@OTHERDIR) { print "update for $dir\n"; system(" find $dir -name \"*.rpm\" -exec cp {} $rpmdir \\; "); } chdir($contribdir) || die "peux pas aller dans $contribdir $!\n"; system("chmod -R 755 $redhatdir"); chdir($rpmdir) || die "problem to go in $rpmdir $!\n"; # # remove the old file # opendir(DIR,'.'); @package=grep(/\.rpm$/,readdir(DIR)); foreach $file (@package) { $file =~ /(.*)\-([\d+|\.]+\w*)\-(\d+)\.[i386|noarch].*/; $nom=$1; $version=$2; $buildvers=$3; if ($NOM{$nom}) { $version2=$VERSION{$nom}; $buildver2=$BUILDVERS{$nom}; $file2=$FILE{$nom}; $nom2=$NOM{$nom}; if ( $version2 gt $version ) { print "$file2 is newer than $file\n"; unlink($file); } else { if ( $version2 lt $version ) { print "$file is newer than $file2\n"; unlink($file2); $VERSION{$nom}=$version; $BUILDVERS{$nom}=$buildvers; $FILE{$nom}=$file; $NOM{$nom}=$nom; } else { # print "$file2 $file same version version\n"; if ( $buildver2 > $buildvers ) { print "$file2 : $buildver2 est mieux que $file : $buildvers\n"; unlink($file); } else { print "$file2 : $buildver2 is older than $file : $buildvers\n"; unlink($file2); $VERSION{$nom}=$version; $BUILDVERS{$nom}=$buildvers; $FILE{$nom}=$file; $NOM{$nom}=$nom; } } } } else { $VERSION{$nom}=$version; $BUILDVERS{$nom}=$buildvers; $FILE{$nom}=$file; $NOM{$nom}=$nom; } } # we do the hard thing here # system("$redhatdir/misc/src/install/genhdlist $redhatdir");
Wyszukiwarka
Podobne podstrony:
cyrillic howto 14
kickstart howto 9 axie2m7apwiq3u2plthh5eco6fetedly6wtefgq
var howto 14 rh4m43hb7d43w45dote5mmjme4h35wk75eb6wjy rh4m43hb7d43w45dote5mmjme4h35wk75eb6wjy
postgresql howto 14 kn2w7fwcayns6hofky7vrmybbvkoougqy7mlcty
serial howto 14 bogki47jxc7niejiu2e7iehvhsrs4fcpiuxwhki bogki47jxc7niejiu2e7iehvhsrs4fcpiuxwhki
kickstart howto 8 el2pf37qy32jmh3umb3bdnrv2ip6ams6bjbwxcq
php howto 14
kickstart howto 6 dshzxbk5zq2awe64ou5ihdejoop5yafbnpzdsxa dshzxbk5zq2awe64ou5ihdejoop5yafbnpzdsxa
esperanto howto 14
ppp howto 14 hsqrqtydaqpicp6eei6tenmcdlcfhrwf2dwh4ka
vms to linux howto 14 cm5l4wlt7qtalypc34eimd4eyk3x4un7tij3hty cm5l4wlt7qtalypc34eimd4eyk3x4un7tij3ht
security howto 14 z3b5loblb2pw4qjxpvcaxiw3pe7hvjayyyf5esq z3b5loblb2pw4qjxpvcaxiw3pe7hvjayyyf5esq
root raid howto 14 7d7nosdfmhift6ktshyoqcgscmpipal2ibmf2ua 7d7nosdfmhift6ktshyoqcgscmpipal2ibmf2ua
kickstart howto 4 aexfdwxxalmaehi3lv7ul6wavea5d56upcmoraq
kickstart howto 11 nn6keb5t565cbh7um22vd5i76mpbgvvdmfzkfoq nn6keb5t565cbh7um22vd5i76mpbgvvdmfzkfoq
ftape howto 14
kickstart howto 3 dimgyhoiqxb6zz5j4q72eu5f7tfufxratjuxuta
więcej podobnych podstron