Quick GNOME installation over FTP



Howdy,

I wrote a quick perl script to install the latest GNOME and related 
RPMs over FTP. Just save the script (install-rpms.pl) and the 
accompanying data file (gnome), and invoke it as

./install-rpms.pl gnome

or

perl install-rpms.pl gnome


install-rpms.pl follows:

#!/usr/local/bin/perl

# install-rpms.pl
#   A script which will execute a set of RPM install/update commands
#     in sequence pausing and confirming on output
#
#   04/14/99 Version 1.0
#   This script is free, public domain, no strings attached
#   Igor S. Livshits <mailto:igorl+progs@life.uiuc.edu>
#
#   Expected inputs:
#     A list of RPM commands


# Cycle through our inputs
#
print "You forgot to feed me data!\n" unless @ARGV;

foreach $file (@ARGV)
{
  open(aFile, $file) || die "Cannot read from <$file>.";

  while($command= <aFile>)
  {				# execute each line as a command
    chop $command if $command=~ /\n$/;
    print $command, "\n";
    $status= system $command;	# execute the current command
    if ($status)
    {				# looks like we had an error
      print "Continue? [n] ";
      $answer= <STDIN>;
      chop $answer;		# drop the trailing newline
      exit unless
	    $answer eq "y" || $answer eq "Y" ||
	    $answer eq "yes" || $answer eq "Yes";
    }
  }

  close(aFile);
}

exit;

###################################

GNOME installation commands follow:
[Some rpm commands are updates (-U) since I had a previous set of 
RPMs installed, but I also successfully tested them on a clean 
system. The URLs of the form ftp://ftp//pub/linux/... are to my local 
mirror. Substitute your own favorite mirror or you are welcome to try 
ours -- just substitute in ftp://ftp.life.uiuc.edu//pub/linux/... 
Please note that we do restrict external access to just a few users 
at a time.]

rpm -i ftp://ftp//pub/linux/redhat/5.2/RedHat/RPMS/umb-scheme-3.2-7.i386.rpm
rpm -U --nodeps 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/glib-1.2.1-1.i38 
6.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/glib10-1.0.6-4.1 
.i386.rpm
rpm -U --nodeps 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gtk+-1.2.1-7.i38 
6.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gtk+10-1.0.6-4.1 
.i386.rpm
rpm -i ftp://ftp//pub/linux/redhat/5.2/RedHat/RPMS/libjpeg-6b-7.i386.rpm
rpm -i ftp://ftp//pub/linux/redhat/5.2/RedHat/RPMS/libtiff-3.4-4.i386.rpm
rpm -i ftp://ftp//pub/linux/redhat/5.2/RedHat/RPMS/ImageMagick-4.1.0-1.i386.rpm
rpm -i ftp://ftp//pub/linux/redhat/5.2/RedHat/RPMS/libgr-2.0.13-13.i386.rpm
rpm -i 
ftp://ftp//pub/linux/redhat/5.2/RedHat/RPMS/libgr-progs-2.0.13-13.i386 
.rpm
rpm -i ftp://ftp//pub/linux/redhat/5.2/RedHat/RPMS/libungif-3.0-4.i386.rpm
rpm -U --nodeps 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/imlib-1.9.5-1.i3 
86.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/imlib-cfgeditor- 
1.9.5-1.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gtk-engines-0.5- 
11.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/ORBit-0.4.3-1.i3 
86.rpm
rpm -i ftp://rpmfind.net/linux/SuSE-Linux/6.0/suse/x3d1/mesa.rpm
rpm -i ftp://ftp//pub/linux/redhat/5.2/RedHat/RPMS/Xaw3d-1.3-17.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/audiofile-0.1.6- 
2.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/esound-0.2.12-1. 
i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/fnlib-0.4-7.1.i3 
86.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/freetype-1.1-5.1 
.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/enlightenment-0. 
15.5-23.i386.rpm
rpm -i 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gnome-audio-1.0. 
0-5.noarch.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gnome-libs-1.0.8 
-1rh.i386.rpm
rpm -U --nodeps 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/libghttp-1.0.2-1 
.i386.rpm
rpm -U --nodeps 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/libgtop-1.0.1-1. 
2.i386.rpm
rpm -U 
ftp://rpmfind.net/linux/freshmeat/xscreensaver/xscreensaver-3.09-1.i38 
6.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gnome-core-1.0.4 
-12rh.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/mc-4.5.30-1rh.i3 
86.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/mcserv-4.5.30-1r 
h.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gmc-4.5.30-1rh.i 
386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gnome-media-1.0. 
1-2.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gnome-objc-1.0.1 
-1.1.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gnome-pim-1.0.7- 
1.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gnome-utils-1.0. 
1-5.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/libxml-1.0.0-1.1 
.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/control-center-1 
.0.5-6.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/enlightenment-co 
nf-0.15-4.i386.rpm
rpm -U 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gtop-1.0.1-2.i38 
6.rpm
rpm -i 
ftp://rpmfind.net/linux/redhat/redhat-5.2/i386/RedHat/RPMS/guile-1.2-6 
.i386.rpm
rpm -i 
ftp://ftp//pub/linux/gnome/gnome-1.0/redhat/i386/Base/gnome-users-guid 
e-1.0.5-1.noarch.rpm

Enjoy, igor



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