Today i am going to give some idea about removing or uninstaling PERL packages which are installed using CPAN.
As we all know, as per documentation the syntax for installing any package is :
if you googled a bit then you came to know that "pan does not have an uninstall routine, especially for all the packages at once"
what is CPAN ?
The CPAN command isn't really a package manager like
So here is the solution for this, you can use App::pmunstall to remove this module.
it will remove this module from system. you can give no of modules to remove separated by spaces. use -f to remove any modules forcefully.
Reference : https://metacpan.org/module/App::pmuninstall
As we all know, as per documentation the syntax for installing any package is :
$ cpan -i modulename
$ cpan -i DBD::mysql
it will install above package correctly in your system but if for some reason you want to remove this package and if you're wondering there must me some command to remove that package then your might be wrong on this case.if you googled a bit then you came to know that "pan does not have an uninstall routine, especially for all the packages at once"
what is CPAN ?
The CPAN command isn't really a package manager like
apt-get
and yum
is. It is more a tool that downloads and installs from CPAN (the site,
or one of its mirrors). After it has finished this task it doesn't
remember much about what was done before, at least not enough to remove
previously installed modules, at least not reliably, cleanly or
dependency-safely.So here is the solution for this, you can use App::pmunstall to remove this module.
$ pm-uninstall DBD::mysql
it will remove this module from system. you can give no of modules to remove separated by spaces. use -f to remove any modules forcefully.
$ pm-uninstall -f XML::Simple DBD::mysql
Reference : https://metacpan.org/module/App::pmuninstall
No comments:
Post a Comment