Re: parsing a file name



On 12 Jan 2007 10:23:41 -0800, Paul Boddie <paul@xxxxxxxxxxxxx> wrote:
Chris Mellon wrote:
>
> I'm trying to think of a good reason to extract the version from the
> filename instead of using RPM to get the real version from the
> metadata and I can't come up with one.

The inquirer doesn't have any RPM handling tools installed/available or
is dealing with a lot of versioned filenames which might be a selection
of different, arbitrary formats.

Try harder! ;-)

Paul

Well, the answer to the first is "get some", so that's not a good
reason. And the second would mean that they asked a question on c.l.p
without giving all the background information on the task they were
doing, and we know that never happens.
.



Relevant Pages

  • Re: [SLE] new kernel
    ... > somewhere or does it have to be installed from an rpm? ... filename: ls-Ral.tar.gz and extract it. ... Check the headers for your unsubscription address ...
    (SuSE)
  • Re: parsing a file name
    ... I'm trying to think of a good reason to extract the version from the ... filename instead of using RPM to get the real version from the ...
    (comp.lang.python)
  • Re: Howto get one (1) file from an rpm ???
    ... how can I extract that one file from the RPM? ... 1st question: rpm -qpl filename ... cpio command to specify which file to extract ...
    (Debian-User)
  • Re: An update is needed Fedora!
    ... a hard reason for PHP5 requirement. ... development SRPMs. ... > Could you send one more example for compiling, installing, configuring, etc? ... they should then be installed as an update using: rpm -Uvh ...
    (Fedora)
  • cannot replace binaries after being rootkitted
    ... `ifconfig', `pstree' and `login' are infected; ... `init' was affected (i.e. the cracker replaced my init with one that ... but I think `rpm' may be infected as well. ... very insecure FTP server and Samba (for no reason other than I was lazy ...
    (comp.os.linux.security)