Install all metacpan favorited distributions
Today I had to install fresh Perl on one of my dev boxes and I was thinking if there is easy way to grab and install all of mine favorited distributions on metacpan.
I wrapped that into simple script, that reads all the favorited distributions from metacpan, using Mojo::UserAgent and installs them using cpanm.
Here is the script: https://gist.github.com/4030168
You can also create a task that contains all your favorited distribution using this:
https://metacpan.org/module/Dist::Create::TaskBeLikeFavorited
Although some have thought that this is a bad idea...
Doesn't seem that bad idea to me ;) Thanks for sharing. However it seems like a little bit more work
Strange that my previous comment did not get published.
There was another nice solution propost on github from Stephen Thirlwall (sdt).
He propose one line function which you can put into .bashrc. For example:
and after that simple as that:
Yup, it's definitely more work. I created a task originally because I often go offline. With a task on CPAN I can just mirror CPAN and install it offline. Plus, it lets me track my favorites over time.