On Wed, 20 Mar 2002, at 6:05pm, Paul Lussier wrote:
> perldoc perllocal
[...]
> Unfortunately, this does not work for modules installed via Debian's
> apt-get mechanism ...
It does not work with RPMs created using cpanflute, either. On my
system, "perldoc perllocal" yielded only one module -- and that one came as
part of RHL's 6.2 base "perl" package! :-)
cpanflute RPMs all begin with "perl-" followed by the module name, so you
can at least do:
rpm -qa | grep ^perl-
to find what is installed. Or, if you prefer a more over-engineered
version:
rpm -qa --qf='%{NAME} %{VERSION}\n' | \
perl -ne 'if (m/^perl-([^ ]+) (.+)/) {
$name = $1;
$ver = $2;
$name =~ s/-/::/g;
printf("%-20s%s\n", $name, $ver);
}'
(Yes, I'm bored. I had two things going on tonight, and now I have none,
thanks to the snow.)
For those who are wondering, "cpanflute" is a Perl script that will
convert a CPAN-style tarball into a SRPM (source RPM), which can then be
built ("rpm --rebuild whatever.src.rpm") to generate an RPM of the Perl
module. It makes it extremely easy to turn a CPAN module into an RPM. You
can find it in /usr/lib/rpm/cpanflute (on RPM systems, of course). Simply
pass the tarball as the first argument. You will find the resulting SRPM
(along with other assorted clutter) under /tmp/cpan when it finishes.
> While I love Ben's approach for providing that information, I'd have to
> say that it's almost not necessary now :)
:)
At first I just typed out the address with the standard spam-guarding,
simply because I usually do that when posting to a public forum. I decided
to throw in a parenthetical remark with instructions in case it wasn't
obvious. Then I realized that I had just written a substitution command --
in English! Given the first part of the message, I couldn't resist turning
it into Perl. ;-)
--
Ben Scott <[EMAIL PROTECTED]>
| The opinions expressed in this message are those of the author and do not |
| necessarily represent the views or policy of any other person, entity or |
| organization. All information is provided without warranty of any kind. |
*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************