CPAN restriction for updating non-core modules only

I often use the cpan upgrade command to bring my Perl modules up to date with their latest versions. Unfortunately, on distributions such as CentOS that use ancient versions of Perl, it tries to update perl along with other modules, such as B :: X. Is there a way to combine lightness and power upgrade , but not try (and fail) when updating base modules? Thanks.

+4
source share
1 answer

Do not use the perl system. Set up your own and start with it. Even when there is no ancient perl.

You will need to exclude not only the main modules, but distributions that depend on newer versions of the main modules and distributions that depend on these distributions ... This is a battle that you cannot win and do not even try.

By the way, the CPAN-try-to-upgrade-perl error was really very ancient; do you really see it?

+3
source

Source: https://habr.com/ru/post/1333536/


All Articles