Updating installed modules?

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Updating installed modules?

    Is there a way to update installed modules? Cpan only seems to offer
    checking for updates and then manually reinstalling.

    Jim Ford
    Jim Ford Guest

  2. Similar Questions and Discussions

    1. From 5.6.1 to 5.8.2: how preserve installed modules?
      Hi, I'm considering upgrading from ActiveState Perl 5.6.1 to 5.8.2 (in order to use the latest Apache and mod_perl, although that's kind of beside...
    2. Who can I tell what perl modules I have installed ?
      Is there an easy way to list out all the perl modules I have installed ? I can list out everything in /usr/lib/perl/ but i figure there must be a...
    3. list installed modules
      Hi, Is there a command that list all the installed modules on a system .... Thanks Olivier
    4. Updating a installed ASP.NET app
      What is a good practise to use for updating my asp.net applications. As a example: I create a installation package using the tools built into...
    5. [Q] all installed modules
      Does anyone know how to get a list of all intelled modules that are available to be USEd? I work with a provider and would like to know this info....
  3. #2

    Default Re: Updating installed modules?

    On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
    wrote:
    >Is there a way to update installed modules? Cpan only seems to offer
    >checking for updates and then manually reinstalling.
    [url]http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface[/url]

    perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'

    --
    Andy Hassall :: [email]andy@andyh.co.uk[/email] :: [url]http://www.andyh.co.uk[/url]
    [url]http://www.andyhsoftware.co.uk/space[/url] :: disk and FTP usage analysis tool
    Andy Hassall Guest

  4. #3

    Default Re: Updating installed modules?

    Andy Hassall wrote:
    > On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
    > wrote:
    >
    >
    >>Is there a way to update installed modules? Cpan only seems to offer
    >>checking for updates and then manually reinstalling.
    >
    >
    > [url]http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface[/url]
    >
    > perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
    Thanks - it did the trick. Is there a 'flag' I can use to accept all the
    default 'yesess and nos'? I had a lot of moldules that needed updating
    and I had to keep checking to see if a response was required from me.

    Jim Ford
    Jim Ford Guest

  5. #4

    Default Re: Updating installed modules?

    On Wed, 28 Jun 2006 09:25:57 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
    wrote:
    >Andy Hassall wrote:
    >> On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
    >> wrote:
    >>
    >>>Is there a way to update installed modules? Cpan only seems to offer
    >>>checking for updates and then manually reinstalling.
    >>
    >> [url]http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface[/url]
    >>
    >> perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
    >
    >Thanks - it did the trick. Is there a 'flag' I can use to accept all the
    >default 'yesess and nos'? I had a lot of moldules that needed updating
    >and I had to keep checking to see if a response was required from me.
    There's inactivity_timeout, although this cancels installation if it's waiting
    for input, so that's not really what you want.

    I can't remember off the top of my head whether it accepts defaults, cancels,
    or hangs when the process doesn't have a terminal, e.g. it's being run under
    cron.

    --
    Andy Hassall :: [email]andy@andyh.co.uk[/email] :: [url]http://www.andyh.co.uk[/url]
    [url]http://www.andyhsoftware.co.uk/space[/url] :: disk and FTP usage analysis tool
    Andy Hassall Guest

  6. #5

    Default Re: Updating installed modules?

    Andy Hassall wrote:
    > >Andy Hassall wrote:
    > >> On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
    > >> wrote:
    > >>
    > >>>Is there a way to update installed modules? Cpan only seems to offer
    > >>>checking for updates and then manually reinstalling.
    > >>
    > >> [url]http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface[/url]
    > >>
    > >> perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
    > >
    > >Thanks - it did the trick. Is there a 'flag' I can use to accept all the
    > >default 'yesess and nos'? I had a lot of moldules that needed updating
    > >and I had to keep checking to see if a response was required from me.
    >
    > There's inactivity_timeout, although this cancels installation if it's waiting
    > for input, so that's not really what you want.
    >
    > I can't remember off the top of my head whether it accepts defaults, cancels,
    > or hangs when the process doesn't have a terminal, e.g. it's being run under
    > cron.
    >
    Hi,

    I had have a similar question not long ago.
    I think there are some questions:
    - interactive installation ( see OP)
    - Wrong Version-Numbers ( I had some with GD Package says locally
    1.0 everytime)
    - Depencies :
    Template::Stash::XS object version 2.15 does not match bootstrap
    parameter 2.14
    at /sw/opensrc/lib/perl5/5.8.3/sun4-solaris/DynaLoader.pm line 249.

    - ???

    Could there be a general solution?
    My solution so far:
    use CPANPLUS::Backend;
    my $cb = CPANPLUS::Backend->new( );
    my @modules = $cb->installed();
    foreach $mod (@modules) {
    if ( !$mod->is_uptodate() && !$mod->package_is_perl_core()) {
    print "Update :" , $mod->name(), "\t" , $mod->installed_version() ,"-" , $mod->version() ,"\n";
    $mod->install();
    }

    }

    regards,

    Steffen
    Steffen Netz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139