From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id BCB193F97C for ; Fri, 13 Dec 2002 15:26:06 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gBDKQ6E11318 for axp-list@listman.redhat.com; Fri, 13 Dec 2002 15:26:06 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gBDKQ6D11314 for ; Fri, 13 Dec 2002 15:26:06 -0500 Received: from handhelds.org ([192.58.209.91]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gBDK0GP01815 for ; Fri, 13 Dec 2002 15:00:16 -0500 Received: (qmail 651 invoked from network); 13 Dec 2002 20:25:40 -0000 Received: from localhost (HELO shadowfax.middleearth) (127.0.0.1) by localhost with SMTP; 13 Dec 2002 20:25:40 -0000 From: George France To: axp-list@redhat.com, "Robert M. Riches Jr." Subject: Re: request for comment, ideas for RH7.2 RPM install script Date: Fri, 13 Dec 2002 15:25:39 -0500 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" References: <200212132005.gBDK5Ia30416@evrtwa1-ar5-4-65-015-110.evrtwa1.dsl-verizon.net> In-Reply-To: <200212132005.gBDK5Ia30416@evrtwa1-ar5-4-65-015-110.evrtwa1.dsl-verizon.net> MIME-Version: 1.0 Message-Id: <02121315253901.06967@shadowfax.middleearth> Content-Transfer-Encoding: 8bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Hello Robert, Sounds good to me. Best Regards, ---George On Friday 13 December 2002 15:05, Robert M. Riches Jr. wrote: > My next personal hobby project is to write a script to install > RPMs from HP's updates area. This message is a request for > comment on requirements and plans for the script. (If anybody > else wants it, I'll be happy to post it when it's done, or at > least when it seems to be working well enough to be worth the > bandwidth.) > > The basic precondition is there is a directory structure created > by something like "wget -rN" from HP's updates (or a mirror > thereof) containing a bunch of RPMs. It appears the updates are > clumped in time so that interdependent RPMs have timestamps of > the same day. > > The postcondition is that the appropriate RPMs will have been > installed. > > In between is a little more complicated. I don't plan to be too > fancy, in that I don't plan to compare the full 'capability' > lists provided and required by each package. If there are > dependency issues not solved by the simple one-day-at-a-time > strategy, that will be left as an exercise for the reader. :-) > > Here are the plans so far: > > - I plan to code it in Perl. > > - It will be purely text-based and will query the user before > removing or installing anything. (That way, it's the user's > fault if something goes wrong. :-) > > - There will be three variables up front for customization: > > - the name of the base directory (either a path or symlink) > > - a list of subdirectory names under the base directory > > - a list of architecture types to install, in priority order; > for example: 'alphaev67', 'alpha', 'noarch' > > - It appears the subdirectory name and the architecture type > match, so I plan to issue a warning if that assumption is > violated as a simple sanity check. > > - For a little bit of speed, I plan to make a hash of the > architecture types. > > - Use "rpm -qa" to get the list of the packages already > installed. > > - Scan the specified subdirectories to build a list of the > packages available. Do the suffix sanity check here. Also, > ignore any duplicates in different architecture types. For > example, if the list is ('alphaev67', 'alpha', 'noarch'), and > if the same package base name is in both the 'alphaev67' and > 'alpha' subdirectories, ignore the latter one in favor of the > former one. > > - Check the 'archives' directories to catch any that have been > obsoleted since they were first downloaded. With user > permission, remove the .rpm files outside the 'archives' > directories. > > - Subtract the already installed packages from the ones > available to produce a list of candidates for installation. > > - Find the oldest file in the candidate list. > > - Starting at that date, for each date until all packages have > been dealt with, do the following: > > - Find all files with timestamps in that day. > > - Run "rpm --checksig" on them. > > - Ask the user whether to proceed to install that packet. > > - Run "rpm -Uvh" on them. > > What am I not understanding correctly about how HP's RPM updates > areas are structured, how RPMs should be installed and/or > anything else relevant? > > Any other comments? > > I guess to really test the script, I'll have to work up the > courage to install the RH7.2 CDs I bought back in July. :-) > > Robert Riches > rm.riches@verizon.net > > > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list