Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* request for comment, ideas for RH7.2 RPM install script
@ 2002-12-13 20:05 ` Robert M. Riches Jr.
  2002-12-13 20:25   ` George France
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Robert M. Riches Jr. @ 2002-12-13 20:05 UTC (permalink / raw)
  To: axp-list

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: request for comment, ideas for RH7.2 RPM install script
  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
  2002-12-13 20:27   ` Stephen Williams
  2002-12-13 20:42   ` Bob Lindell
  2 siblings, 0 replies; 8+ messages in thread
From: George France @ 2002-12-13 20:25 UTC (permalink / raw)
  To: axp-list, Robert M. Riches Jr.

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: request for comment, ideas for RH7.2 RPM install script
  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
@ 2002-12-13 20:27   ` Stephen Williams
  2002-12-13 20:42   ` Bob Lindell
  2 siblings, 0 replies; 8+ messages in thread
From: Stephen Williams @ 2002-12-13 20:27 UTC (permalink / raw)
  To: axp-list

rm.riches@verizon.net said:
> 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.)

How about an up2date server? The up2date client is already written
and distributed, all that's needed is a compatible way to serve it
up.

This was discussed earlier on this list, and in the process, this
URL turned up:

 http://www.biology.duke.edu/computer/unix/current/.


-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
steve at picturel.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: request for comment, ideas for RH7.2 RPM install script
  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
  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:19     ` Michal Jaegermann
  2 siblings, 2 replies; 8+ messages in thread
From: Bob Lindell @ 2002-12-13 20:42 UTC (permalink / raw)
  To: axp-list

There is already a set of perl scripts called autorpm.  Go to
rpmfind.net and search for "autorpm".  There is also the
"current" up2date server.  We use it here at ISI to keep our
machines up to date.

http://www.biology.duke.edu/computer/unix/current/

Bob

> 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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: request for comment, ideas for RH7.2 RPM install script
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Stephen Williams @ 2002-12-13 21:09 UTC (permalink / raw)
  To: axp-list

lindell@isi.edu said:
> There is also the "current" up2date server.  We use it here at ISI to
> keep our machines up to date.

It sure would be nice if HPQ, or someone, made a publicly available
server for the updates. Perhaps someone outside can donate space
and bandwidth, and mirror the updates from HPQ?

Also, it might be interesting if someone set up "rawhide" channels:-)
-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
steve at picturel.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: request for comment, ideas for RH7.2 RPM install script
  2002-12-13 20:42   ` Bob Lindell
  2002-12-13 21:09     ` Stephen Williams
@ 2002-12-13 21:19     ` Michal Jaegermann
  1 sibling, 0 replies; 8+ messages in thread
From: Michal Jaegermann @ 2002-12-13 21:19 UTC (permalink / raw)
  To: axp-list

On Fri, Dec 13, 2002 at 12:42:15PM -0800, Bob Lindell wrote:
> There is already a set of perl scripts called autorpm.  Go to
> rpmfind.net and search for "autorpm".  There is also the
> "current" up2date server.  We use it here at ISI to keep our
> machines up to date.
> 
> http://www.biology.duke.edu/computer/unix/current/

Yet another possibility would be 'apt-rpm'.  Likely the
best starting point for finding out about that would be

http://apt4rpm.sourceforge.net/ref.html

You would need tested clients for Alpha and repository (or
repositories).

> > It appears the updates are
> > clumped in time so that interdependent RPMs have timestamps of
> > the same day.

In general this is false, or you cannot guarantee this condition, but
various tools for resolving dependencies exist for quite a while.
Things are somewhat more complicated then you seem to realize but there
is no need to reinvent a wheel.  Making that wheel widely popular and
useful for purposes you have in mind would be indeed a very worthwhile
project.

   Michal




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: request for comment, ideas for RH7.2 RPM install script
  2002-12-13 21:09     ` Stephen Williams
@ 2002-12-13 21:20       ` George France
  0 siblings, 0 replies; 8+ messages in thread
From: George France @ 2002-12-13 21:20 UTC (permalink / raw)
  To: axp-list, Stephen Williams

Hello Stephen,

I have been meaning to get around to this.  Just not enough hours in 
the day.  If there is a sane and reliable solution for the up2date issues,
then I would be happy to set things up on a HPQ server for RH-7.2
for Alpha.  

As for the 'rawhide' channels, if you can get permission from RedHat,
then I would be happy to include it on the HPQ server.

Unless we resolve this issue is resolved next week, then due to the
holidays, I do not expect to be able to look more into this matter until
after Jan 5, 2003.

Best Regards,


--George

On Friday 13 December 2002 16:09, Stephen Williams wrote:
> lindell@isi.edu said:
> > There is also the "current" up2date server.  We use it here at ISI to
> > keep our machines up to date.
>
> It sure would be nice if HPQ, or someone, made a publicly available
> server for the updates. Perhaps someone outside can donate space
> and bandwidth, and mirror the updates from HPQ?
>
> Also, it might be interesting if someone set up "rawhide" channels:-)




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: request for comment, ideas for RH7.2 RPM install script
       [not found] <200212132005.gBDK5Ia30416@evrtwa1-ar5-4-65-015-110.evrtwa1 .dsl-verizon.net>
@ 2002-12-14 16:34 ` Maurice Hilarius
  0 siblings, 0 replies; 8+ messages in thread
From: Maurice Hilarius @ 2002-12-14 16:34 UTC (permalink / raw)
  To: axp-list

With regards to your message at 01:05 PM 12/13/02, Robert M. Riches Jr.. 
Where you stated:
>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.)

Excellent news Rich!

A lot of people will appreciate this.


With our best regards,

Maurice W. Hilarius       Telephone: 01-780-456-9771
Hard Data Ltd.               FAX:       01-780-456-9772
11060 - 166 Avenue        mailto:maurice@harddata.com
Edmonton, AB, Canada      http://www.harddata.com/
    T5X 1Y3

Ask me about NAS and near-line storage




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-12-14 16:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
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

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