1

pacman this morning reported the following:

WARNING: '/usr/lib/perl5/5.28' contains data from at least 4 packages which will NOT be used by the installed perl interpreter. -> Run the following command to get a list of affected packages: pacman -Qqo '/usr/lib/perl5/5.28'

That command lists a few directories. I managed to find out which modules these are using cpan -l, but cpanm refuses to uninstall any of them. For example:

! Test::CleanNamespaces is not found in the following directories and can't be uninstalled.

/usr/lib/perl5/5.30/site_perl /usr/share/perl5/site_perl

How do I remove these packages?

4
  • 5.28 != 5.30. It seems like you installed a new version of Perl, leaving the modules of the old version behind. Commented Jul 7, 2019 at 22:04
  • @choroba Yes, that's what happens when updating :) If there is a sensible (as in, automatable) way of dealing with this before upgrading that would be handy as well. Commented Jul 7, 2019 at 22:51
  • If you don't use 5.28 anymore, just remove all its directories. Commented Jul 8, 2019 at 7:26
  • Do you want to make that an answer? It answers my question very nicely :) Commented Jul 8, 2019 at 9:00

1 Answer 1

1

5.28 != 5.30. It seems like you installed a new version of Perl, leaving the modules of the old version behind. If you don't use 5.28 anymore, just remove all its directories.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.