Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: George France <france@handhelds.org>
To: axp-list@redhat.com, "Robert M. Riches Jr." <rm.riches@verizon.net>
Subject: Re: request for comment, ideas for RH7.2 RPM install script
Date: Fri, 13 Dec 2002 15:25:39 -0500	[thread overview]
Message-ID: <02121315253901.06967@shadowfax.middleearth> (raw)
In-Reply-To: <200212132005.gBDK5Ia30416@evrtwa1-ar5-4-65-015-110.evrtwa1.dsl-verizon.net>

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




  reply	other threads:[~2002-12-13 20:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <rm.riches@verizon.net>
2002-12-13 20:05 ` request for comment, ideas for RH7.2 RPM install script Robert M. Riches Jr.
2002-12-13 20:25   ` George France [this message]
2002-12-13 20:27   ` Stephen Williams
2002-12-13 20:42   ` Bob Lindell
2002-12-13 21:09     ` Stephen Williams
2002-12-13 21:20       ` George France
2002-12-13 21:19     ` Michal Jaegermann
     [not found] <200212132005.gBDK5Ia30416@evrtwa1-ar5-4-65-015-110.evrtwa1 .dsl-verizon.net>
2002-12-14 16:34 ` Maurice Hilarius
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox