http://qs321.pair.com?node_id=765644

calvinlyp has asked for the wisdom of the Perl Monks concerning the following question:

hi, i am relatively new to perl.

wanted to run some perl script for some project. i install the version of the module required for the software.

however, i did a update of the version of certain modules.

now the software seems to be giving errors after the update.

is there anyway i can downgrade the version of the library or module?

or maybe uninstall the module?

pls help.

Replies are listed 'Best First'.
Re: How to uninstall module of perl
by Anonymous Monk on May 22, 2009 at 10:06 UTC
Re: How to uninstall module of perl
by gnuchu (Novice) on May 22, 2009 at 11:57 UTC
    If you are using ppm then simply:

    $ ppm remove Foo::Bar

      sorry i not very familiar what is ppm. i am using ubuntu 8.10 with perl version 5.10

      by the way how to know where i can delete the files of the module i install?it is because it seems to appear at multiple location of the module i installed. fro eg /usr/lib/perl/5.10/ is in this particular dir, next i also have /usr/local/share/perl/5.10.0 . thus it make me confuse where does the modules go to?

      if i now download an old version and i install it, will it overwrite my current latest version?

        ppm is the Perl Package Manager that comes with ActiveState perl. This build of perl is popular for Windows system but is also available for other system.

        There are several ways you might have installed your modules. If you post the details you may get more specific answers to your questions.

        In general, you should uninstall the modules with the same tool that you used to install them.

        If you used the Ubuntu package manager to install an Ubuntu package, then you should probably use the same package manager to uninstall the package. Simply removing the files may work from perl's perspective but it may confuse your package manager, possibly causing problems in the future. I would uninstall the newer package before installing an older one myself, but someone more familiar with the Ubuntu platform may be able to give you shortcuts.

        If you installed packages directly from CPAN with the cpan or cpanp commands, the CPAN or CPANPLUS modules or by manually downloading from CPAN and following the install directions, then you can follow the advice given in the first response to your post and its linked documents and posts.