Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Regex to break up rpm filenamesby jasonk (Parson) |
on Feb 22, 2003 at 14:25 UTC ( [id://237735]=note: print w/replies, xml ) | Need Help?? |
Keep in mind that the version information in the filename is only there to be helpful for the human, the version information that is used when you actually install the file comes from within the RPM itself. This means it is possible for an rpm to have any filename and still be valid, although the regexps already offered here will work in most cases. Because of this limitation, the best way to get the information you are looking for is to download the package, and extract the information from inside it. If you can't get the perl RPM package to install, but you do have the rpm command, you can get this information like this:
If you can't download the package, the other regexps offered here should work in most cases, just keep this in mind if you find it gives you the wrong information for some package.
In Section
Seekers of Perl Wisdom
|
|