Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
An easy way to get reverse dependencies is to use cpangraph. You'd run it like this:
cpangraph --reverse CGI
It'll produce a svg graph in the current directory. Use your browser to view it. Now, to get to the point where you can run that command, you'll need to install CPANDB::Generator. Then run this:
#!/usr/bin/perl use strict; use warnings; use CPANDB::Generator; my $cpan = CPANDB::Generator->new( cpan => '/root/.cpan', sqlite => '/root/CPANDB.sqlite', )->run;
That will fetch the sqlite database necessary to get the dependencies. It'll take time, so be patient. Next, make sure that your system can handle svg. Here's a bundle that I used, and, trust me, it works. The whole process will take a couple of hours, so hang tight. Then you're good to go.
#!/usr/bin/perl use strict; use warnings; use CPAN; CPAN::Shell->force('install', "Test", "Test::More", "URI", "LWP::Simple", "LWP::Online", "Time::HiRes", "Getopt::Long", "List::Util", "Scalar::Util", "Math::Complex", "Graph::Directed", "SVG::XML", "GD::SVG", "XML::Parser", "XML::SAX", "SVG::Parser", "Pod::Usage", "XML::Twig", "SVG::Metadata", "Class::Date", "Clone", "Image::ExifTool", "Math::Trig", "Readonly", "Template", "Template::Provider::FromDATA", "Test::Kwalitee", "Test::Perl::Critic", "version", "Test::Pod", "Test::Pod::Coverage", "Test::Spelling", "SVG::Calendar", "Statistics::Descriptive", "Tree::DAG_Node", "Math::Spline", "Math::Derivative", "SVG::Graph", "Transform::Canvas", "Data::Dumper", "Config::General", "SVG::Template::Graph", "DateTime", "HTTP::Date", "Compress::Zlib", "XML::XPath", "Math::BaseCnv", "XML::Tidy", "SVG::TT::Graph", "Geo::ShapeFile", "Date::Simple", "XML::Generator::SVG::ShapeFile", "SVG::DOM2", "GD::Text", "UML::Sequence", "IO::String", "Image::Info", "Test::NoWarnings", "Graphics::ColorNames", "Graphics::ColorNames::WWW", "SVG::Sparkline", "Class::Accessor", "Cairo", "Pango", "Params::Validate", "Exception::Class", "Test::Exception", "SVG::Rasterize", "Graph::Easy", "Graph::Easy::As_svg", "Class::Accessor::Fast", "Module::Load", "Module::Pluggable::Fast", "XML::LibXML", "SVG::Convert", "SVGGraph::Pie", "Test::XML", "Algorithm::Points::MinimumDistance", "SVG::Plot", "SVGraph", "Heap", "Graph::Usage");

In reply to Re: CPAN reverse dependencies by Khen1950fx
in thread CPAN reverse dependencies by astroboy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found