yes i must have been mistaken about that.

how about trying parsehdlist in the same package, and there is aperl
module that seems to provide the core functionality.

just tried parsehdlist hdlist.cz [1] and it produces a list of
packages,[2] there are many other options too.[3]


[1] hdlist.cz downloaded from some random mirror.


[2]

./parsehdlist hdlist.cz |head
apache2-2.0.47-6.12.92mdk.i586.rpm
apache2-common-2.0.47-6.12.92mdk.i586.rpm
apache2-mod_dav-2.0.47-6.12.92mdk.i586.rpm
libGConf1-1.0.9-13.1.92mdk.i586.rpm
fetchmail-6.2.4-1.1.92mdk.i586.rpm
kdebase-kdeprintfax-3.1.3-79.2.92mdk.i586.rpm
gnome-pilot-2.0.10-3.1.92mdk.i586.rpm
mdkkdm-9.2-9.2.92mdk.i586.rpm
harddrake-9.2-19.7.92mdk.i586.rpm
openssl-0.9.7b-4.2.92mdk.i586.rpm

[3]
usage:
  --help         - print this help message.
  --raw          - assume raw hdlist (always the case for -).
  --interactive  - interactive mode (following options are taken from stdin
                   and output only the necessary data, end as emtpy line, not
                   compatible with any print tag commands).
  --quiet        - do not print tag name (default if no tag given on command
                   line, incompatible with interactive mode).
  --compact      - print compact provides, requires, conflicts, obsoletes flags.
  --all          - print all tags (incompatible with interactive mode).
  --synthesis    - print synthesis tags (incompatible with interactive mode).
  --name         - print tag name and rpm filename if needed.
  --info         - print tag name, serial and rpm filename if needed
  --group        - print tag group: group.
  --size         - print tag size: size.
  --serial       - print tag serial: serial.
  --summary      - print tag summary: summary.
  --description  - print tag description: description.
  --provides     - print tag provides: all provides (mutliple lines).
  --requires     - print tag requires: all requires (multiple lines).
  --files        - print tag files: all files (multiple lines).
  --fileswinfo   - print tag files: all files (multiple lines) with more 
informations on each package.
  --conflicts    - print tag conflicts: all conflicts (multiple lines).
  --obsoletes    - print tag obsoletes: all obsoletes (multiple lines).
  --prereqs      - print tag prereqs: all prereqs (multiple lines).

without any option, print only rpm filenames


On Thu, 18 Nov 2004 13:44:05 +1300
Zane Gilmore <[EMAIL PROTECTED]> wrote:

> AFAICT
> It seems to be a binary format.
> Even with MC, although you can see occasional clusters of text, there is 
> nothing there which could be described as useful.
> 
> This implies that I need to get a program that can read it or find the 
> original code that reads and writes them and write something myself. An 
> interesting exercise although almost certainly time consuming.
> 
> 
> 
> Nick Rout wrote:
> > On Thu, 18 Nov 2004 13:15:48 +1300
> > Nick Rout <[EMAIL PROTECTED]> wrote:
> > 
> > 
> >>i'm pretty sure mc will view it, press f3e, or try unzipping it with
> > 
> > 
> > thats "press F3"
> > 
> 
> 
> -- 
> Zane Gilmore, Analyst / Programmer
> Information Services Section, Information Technology Dept,
> University of Canterbury - Te Whare Waananga o Waitaha
> Private Bag 4800,
> Christchurch New Zealand  Phone +64-3-364 2987 extn 7895

-- 
Nick Rout <[EMAIL PROTECTED]>

Reply via email to