View Single Post

   
  #10 (permalink)  
Old 02-20-2008, 04:40 PM
Alan_C
 
Posts: n/a
Default Re: Slack and package management

"Mahy" <jkotuc@gmail.com> writes:

> Well, there's another question: How to (easily) upgrade to "current"
> without any 3rd party util while minimizing the risk of landing with
> bricked system? Thanks for advice.


current is the development version, the pre release version. 10.2 is the
latest release at this time.

***Next is how I keep Slackware-current up to date*** it's NOT how to upgrade**
perhaps my home brewed method anyways until I improve upon it. it works for me

(I start off with current as in why upgrade when I don't have to)a few ISO's of
current used to exist on the web but then I learned how to make my own ISO's.

http://uselesstree.org/live/tree/gro...mplete_Slacker

I've benefited from some of the info there. I don't use all of it -- for
instance I have my own Perl script that checks the changelog -- but I need to
write/program some more bells and whistles into it so it will auto update
itself once it has reported to me that package updates are available. Since I
don't manually edit/update it, I then took to merely using a bookmark in my web
browser to check via http the changelog once in a while.

I've an 80 GB USB external HD that stores my mirror. I just sync it via ftp
or rsync with a web mirror (of current) once in a while.

discretion needed on the next method. It works very fine but I've not been
doing it for very long (I'm sure some packages could not update via the next).

From changelog, I copy and paste into an editor such things as:

ap/cdrdao-1.2.1-i486-1.tgz: Upgraded to cdrdao-1.2.1.
ap/mysql-5.0.21-i486-1.tgz: Upgraded to mysql-5.0.21.

my editor can do regex replace to rid of unneeded so that I result in only
the paths and filenames, thus:

ap/cdrdao-1.2.1-i486-1.tgz
ap/mysql-5.0.21-i486-1.tgz

I save that as text file with date, thus:

slak_cur_upd051306.txt

Then as root I cd into the slackware directory of my local mirror.

Then (since I so far learned more of Perl than I learned of shell script) I
run a Perl script that reads my text file into an array and then hands off
to upgradepkg doing so one package at a time until the mentioned upgrade
list is exhausted.

You can tell that I use the script for more than just multiple
(and selective) upgradepkg

from slackware dir. of my local mirror, the command:

# perl_script slak_cur_upd051306.txt

#!/usr/bin/perl -w
use strict;

# http://download.kde.org/download.php
# my $base = 'ftp://ftp.oregonstate.edu/pub/kde/stable/3.5.2/contrib/Slackware/10.2/';
# my $base = 'ftp://mirrors.kernel.org/fedora/core/5/i386/iso/';
my $old = shift;
open(OLD, "<", $old) or die "cant open $old: $!";
my @lines = <OLD> ;
close(OLD) or die "cant close $old: $!";

foreach my $line ( @lines ) {
chomp($line);
# system("wget $base$line");
# system("wget $line");
# system("md5sum $line");
# system("identify $line");
system("upgradepkg $line");
} # end

--
abc Alan_Cu b c n u
Reply With Quote