On Monday 10 February 2025 10:53:26 Greenwich Mean Time Dale wrote:
This is the perl I have installed.
dev-lang/perl-5.40.0-r1:0/5.40
I'm not going to list all the stuff it spit out. Just going to include
enough that you get the idea.
* /usr/lib64/perl5/5.40/Parse/CPAN/Meta.pm
* /usr/lib64/perl5/5.40/Config/Perl/V.pm
* /usr/lib64/perl5/5.40/Config/Extensions.pm
...
These look legit files installed by portage for your perl 5.40 slot. The
message I received after perl-cleaner finished its job was:
=========================================
* GNU info directory index is up-to-date.
*
* It seems like perl-cleaner had to rebuild some packages.
*
* The following files remain. These were either installed by hand
* or edited.
* /usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/auto/Regexp/
IPv6/.packlist
* /usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/auto/File/Temp/.packlist
* /usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/auto/File/
Which/.packlist
* /usr/lib64/perl5/vendor_perl/5.40/x86_64-linux/auto/File/
chdir/.packlist
[snip ...]
===============
They are all listed under /usr/lib64/perl5/. Say you want to check if these
are really orphaned files no longer owned by any installed package, you can
run:
~ $ qfile -o $(find /usr/lib /usr/lib64 -name "*.packlist")
~ $
~ $ qfile -o $(find /usr/lib /usr/lib64 -name "*.pm")
~ $
~ $ qfile -o $(find /usr/lib /usr/lib64 -name "*.pod")
~ $
~ $ qfile -o $(find /usr/lib /usr/lib64 -name "*.pl")
~ $
and so on. In my example above I did not discover any orphans.
They appear to be for the current installed versions. That's one reason
it is kinda confusing. o_O
I see what you mean, the message "... These were either installed by hand or
edited" can be confusing, because all these perl5 files were installed by
portage and perl was invariably brought in as a dependency by some other
@system or @world package.