Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

regex for rpm: name, version, release, arch

by mhearse (Chaplain)
on Aug 30, 2012 at 17:37 UTC ( [id://990806]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    rpm -qa
    fipscheck-1.2.0-1.el5.x86_64
    ...
    libXi-1.0.1-4.el5_4.i386
    perl-Carp-Clan-5.3-1.2.1.noarch
    rpm-build-4.6.1-2.el5.x86_64
    
  2. or download this
    my ($name, $version, $release, $arch);
    if ($line =~ /^(\w-+)-(\d.+)-(\d?)\.(\w+)$/) {
    ...
        $release = $3
        $arch = $4; 
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://990806]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-25 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found