On Tue, Jul 18, 2017 at 12:52:15PM -0400, Jude DaShiell wrote: > Does any means exist within perl to detect that a perl base installed on a > system is completely intact? Perl base is perl binary and all support > packages that binary uses before cpan or cpanp is run. The perl base is put > on newly installed systems. > I am interested in this since sometimes system updates break perl and steps > have to be taken to clear the breakage then repair steps need to be taken. > If a means exists to let a user know this list of packages came with your > installed system and are now missing perl system repairs could be expedited. > Aside from perl, such capabilities added to other base systems like python > for one example could help out repairing those other systems too. >
There's more than one way to do it. Off the top of my head: # apt install --reinstall perl-base Or the same for perl and perl-modules-5.24 later on. This should never be broken. If you are adding packages via cpan, make sure you have siteprefix, sitelib and sitearch defined to be in /usr/local/, so you can clear those out without affecting perl-base or perl. There's a Debian Perl list, of course. -dsr-