WARNING: 5 file(s) in /usr/lib/perl5/5.40 are not tracked by pacman

Today i got a few updates offered, at the end i get a message and i want to understand what it is. Does anyone know ?

==> finished: 4 packages removed (disk space saved: 11.74 MiB)
(4/5) Checking for old perl modules...
fout:Geen enkel pakket bezit /usr/lib/perl5/5.40
WARNING: 5 file(s) in /usr/lib/perl5/5.40 are not tracked by pacman and need to be rebuilt.
-> These were most likely installed directly by cpan or a similar tool.
Run the following command to get a list of these files:
LC_ALL=C find "/usr/lib/perl5/5.40" -type f -exec pacman -Qqo {} + |& sed -n 's/^error: No package owns \(.*\)$/\1/p'
(5/5) Checking which packages need to be rebuilt

[davinai@davina-hppaviliong7notebookpc ~]$ LC_ALL=C find "/usr/lib/perl5/5.40" -type f -exec pacman -Qqo {} + |& sed -n 's/^error: No pa
ckage owns \(.*\)$/\1/p'
/usr/lib/perl5/5.40/site_perl/_h2ph_pre.ph
/usr/lib/perl5/5.40/site_perl/asm/unistd_64.ph
/usr/lib/perl5/5.40/site_perl/asm/unistd.ph
/usr/lib/perl5/5.40/site_perl/sys/syscall.ph
/usr/lib/perl5/5.40/site_perl/bits/syscall.ph

When i check if perl5 is installed in yay or pacman i don’t see any app related to it.

They are installed by cpan or another tool, maybe from an AUR PKGBUILD that you installed?

According to the perl policy the files in .../site_perl/... subdirectory do not belong to any package:

  • site

Modules installed by the local administrator for the current version of Perl. Typically, these modules are installed using the cpan or cpanp tool, or are downloaded in source form and installed via make.

/usr/lib/perl5/site_perl/version
/usr/share/perl5/site_perl/version

So do i need to do anything with the message?

Have you checked for orphans ?
sudo pacman -Qdtq | pacman -Rns -
or

yay -Yc

Current perl version is 5.42. I guess what happened here is that your perl 5.40 was supposed to be upgraded to 5.42. pacman detected that site_perl is not empty and warned you that these files have to be created manually by you in the new .../5.42/site_perl/... directory.

If you do not know what these files are doing resp. what you manually installed from cpan, I suggest you just ignore those warnings. You do not need to create them in .../5.42/site_perl/.... You do not know how to do that anyways. And you can delete them from the 5.40 directory when perl 5.42 is installed. The whole /usr/lib/perl5/5.40 is obsolete with perl 5.42.

1 Like

Never heard of it BUT i removed everything from it. Thanks! 900MB got freed up.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.