How to list which perl modules are installed
Despite that, I can show you that other Perl-ish modules are compatible with any Perl stream. Yum can search in a packaged CPAN module, so give a try:. Thus, yum asked for enabling the streams and installing the packages.
Notice that perl These two modules have no other streams. In general, any module can have multiple streams. At most, one stream of a module can be the default one. And, at most, one stream of a module can be enabled. An enabled stream takes precedence over a default one. If there is no enabled or a default stream, content of the module is unavailable. Enough theory, back to some productive work. Let's create a test database, a foo table inside with one textual column called bar , and let's store a row with Hello text there:.
So far, everything is great and working. Now I will show what happens if you try to install an RPM package that has not been modularized and is thus compatible only with the default Perl, perl Yum will report an error about perl-libwww-perl RPM package being incompatible. When a perl However, this masking does not apply to non-modular packages, like perl-libwww-perl.
There are plenty of packages that were not modularized yet. If you need some of them to be available and compatible with a non-default stream e. Let's say you tested your old application and now you want to find out if it works with the new Perl 5. To do that, you need to switch back to the perl Unfortunately, switching from an enabled stream back to a default or to a yet another non-default stream is not straightforward.
You can follow the same steps to install the Perl module as per requirements. KnownHost offers days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you with installing perl modules, whenever you need our assistance. Well, why not? Check with our Sales team to see what can KnownHost do for you in improving your webhosting experience. Hosting Question? Asked 12 years, 6 months ago. Active 6 years, 9 months ago.
Viewed k times. I tried to check if XML::Simple is installed in my system or not. However, the following executes fine. Improve this question. Sinan: you changed the question a bit too much.
I think the original question was how to find out where a module is installed. Now it's whether a module is installed. I really have no idea. But considering the current question, your answer is pretty much the best so far. Maybe Chells can enlighten us. Sinan: why'd you retag from perl-module to perl-modules when the latter is barely used? Add a comment. Active Oldest Votes. Improve this answer.
Of course, this will only work if the module you are looking for contains POD. Some of them are so well documented that they have their docs in their own. It's a nice trick that works most of the time with that one little gotcha. This only works if the module contains Pod. Strange but true.
You should use -lm instead of -l. It the's same, except that it also works if the module has no POD. Show 2 more comments. This is the one I like :. Show 1 more comment.
0コメント