* [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch. @ 2025-02-09 23:46 Dale 2025-02-10 10:01 ` Michael 0 siblings, 1 reply; 6+ messages in thread From: Dale @ 2025-02-09 23:46 UTC (permalink / raw To: gentoo-user Howdy, It was mentioned a while ago in a thread that running perl-cleaner --reallyall on occasion is a good idea. It makes sure everything is stable. So, it hit me, I haven't ran it in a while, month or so. When I did, it re-emerged a lot of packages like it usually does. Then it listed a large list of leftover files. If it were just a few, I'd use equery and such to see what belonged to what and if it was safe to remove them. Thing is, it is quite a long list. It could take me days to check each one. I found a old thread that talked about a delete option. I check the man page, that option is no longer listed so I guess it is no longer available. So, what is the correct way to deal with these and be safe? Obviously I don't want to remove something the system needs. I also don't want a growing list of files that are no longer needed hanging around either. While at it, is there a way to remove any files that doesn't belong to a package? A system wide clean up if you will. Thanks. Dale :-) :-) ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch. 2025-02-09 23:46 [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch Dale @ 2025-02-10 10:01 ` Michael 2025-02-10 10:53 ` Dale 0 siblings, 1 reply; 6+ messages in thread From: Michael @ 2025-02-10 10:01 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2298 bytes --] On Sunday 9 February 2025 23:46:08 Greenwich Mean Time Dale wrote: > Howdy, > > It was mentioned a while ago in a thread that running perl-cleaner > --reallyall on occasion is a good idea. It makes sure everything is > stable. Well, not everything, but everything related to files linked against older versions of libperl. > So, it hit me, I haven't ran it in a while, month or so. When > I did, it re-emerged a lot of packages like it usually does. Then it > listed a large list of leftover files. Were all these files found in a directory belonging to an older version of perl? For example, the current perl is /usr/lib64/perl5, so you'll have files like: /usr/lib64/libperl.so.5.40.0 and symlinks to it from your perl5 directory, e.g.: ~ $ ls -la /usr/lib64/perl5/5.40/x86_64-linux/CORE/libperl.so.5.40 lrwxrwxrwx 1 root root 29 Jan 19 11:55 /usr/lib64/perl5/5.40/x86_64-linux/ CORE/libperl.so.5.40 -> ../../../../libperl.so.5.40.0 > If it were just a few, I'd use > equery and such to see what belonged to what and if it was safe to > remove them. Thing is, it is quite a long list. It could take me days > to check each one. I found a old thread that talked about a delete > option. I check the man page, that option is no longer listed so I > guess it is no longer available. > > So, what is the correct way to deal with these and be safe? Obviously I > don't want to remove something the system needs. I also don't want a > growing list of files that are no longer needed hanging around either. If the files you're concerned about are under a directory belonging to a previous version of perl , e.g. perl4, then you can remove the lot after you run perl-cleaner. > While at it, is there a way to remove any files that doesn't belong to a > package? A system wide clean up if you will. > > Thanks. > > Dale > > :-) :-) There was some old script to remove cruft, but I have never used it. I think as Gentoo matured over the years, files left behind when you uninstall a package have become less likely. There is 'qfile -o ...' you can use with 'find' to identify any orphan files left in your system, but it assumes you know what types of files to search for, e.g. "*.la". Have a look at the examples in the man page, to see how it can be used. [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch. 2025-02-10 10:01 ` Michael @ 2025-02-10 10:53 ` Dale 2025-02-10 11:15 ` Michael 0 siblings, 1 reply; 6+ messages in thread From: Dale @ 2025-02-10 10:53 UTC (permalink / raw To: gentoo-user Michael wrote: > On Sunday 9 February 2025 23:46:08 Greenwich Mean Time Dale wrote: >> Howdy, >> >> It was mentioned a while ago in a thread that running perl-cleaner >> --reallyall on occasion is a good idea. It makes sure everything is >> stable. > Well, not everything, but everything related to files linked against older > versions of libperl. > Well, I meant everything perl related. ;-) >> So, it hit me, I haven't ran it in a while, month or so. When >> I did, it re-emerged a lot of packages like it usually does. Then it >> listed a large list of leftover files. > Were all these files found in a directory belonging to an older version of > perl? For example, the current perl is /usr/lib64/perl5, so you'll have files > like: > > /usr/lib64/libperl.so.5.40.0 > > and symlinks to it from your perl5 directory, e.g.: > > ~ $ ls -la /usr/lib64/perl5/5.40/x86_64-linux/CORE/libperl.so.5.40 > lrwxrwxrwx 1 root root 29 Jan 19 11:55 /usr/lib64/perl5/5.40/x86_64-linux/ > CORE/libperl.so.5.40 -> ../../../../libperl.so.5.40.0 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 ... * /usr/lib64/perl5/5.40/ExtUtils/MM_Darwin.pm * /usr/lib64/perl5/5.40/ExtUtils/MakeMaker/Tutorial.pod * /usr/lib64/perl5/5.40/ExtUtils/MakeMaker/Locale.pm ... * /usr/lib64/perl5/5.40/I18N/LangTags/Detect.pm * /usr/lib64/perl5/5.40/I18N/Collate.pm * /usr/lib64/perl5/5.40/I18N/LangTags.pm * /usr/lib64/perl5/5.40/Pod/Perldoc/ToTk.pm * /usr/lib64/perl5/5.40/Pod/Perldoc/ToTerm.pm * /usr/lib64/perl5/5.40/Pod/Perldoc/ToMan.pm ... * /usr/lib64/perl5/5.40/unicore/lib/SD/Y.pl * /usr/lib64/perl5/5.40/unicore/lib/NFKDQC/Y.pl * /usr/lib64/perl5/5.40/unicore/lib/NFKDQC/N.pl ... * /usr/lib64/perl5/5.40/unicore/lib/Perl/PosixPun.pl * /usr/lib64/perl5/5.40/unicore/lib/Perl/_PerlPat.pl * /usr/lib64/perl5/5.40/unicore/lib/Perl/_PerlPr2.pl ... * /usr/lib64/perl5/vendor_perl/5.40/auto/share/dist/DateTime-Locale/to-TO.pl * /usr/lib64/perl5/vendor_perl/5.40/auto/share/dist/DateTime-Locale/sr.pl * /usr/lib64/perl5/vendor_perl/5.40/auto/share/dist/DateTime-Locale/kaj.pl I left out a LOT of lines. There is over 7,000 lines of it in all. If you want the whole thing, I can either send off list or tar it up and attach it for anyone curious. > >> If it were just a few, I'd use >> equery and such to see what belonged to what and if it was safe to >> remove them. Thing is, it is quite a long list. It could take me days >> to check each one. I found a old thread that talked about a delete >> option. I check the man page, that option is no longer listed so I >> guess it is no longer available. >> >> So, what is the correct way to deal with these and be safe? Obviously I >> don't want to remove something the system needs. I also don't want a >> growing list of files that are no longer needed hanging around either. > If the files you're concerned about are under a directory belonging to a > previous version of perl , e.g. perl4, then you can remove the lot after you > run perl-cleaner. > They appear to be for the current installed versions. That's one reason it is kinda confusing. o_O >> While at it, is there a way to remove any files that doesn't belong to a >> package? A system wide clean up if you will. >> >> Thanks. >> >> Dale >> >> :-) :-) > There was some old script to remove cruft, but I have never used it. I think > as Gentoo matured over the years, files left behind when you uninstall a > package have become less likely. > > There is 'qfile -o ...' you can use with 'find' to identify any orphan files > left in your system, but it assumes you know what types of files to search > for, e.g. "*.la". Have a look at the examples in the man page, to see how it > can be used. I don't want to risk messing up my rig. If there was a known script/package for it that was well tested, then that would be nice. Thoughts on perl files???? Dale :-) :-) ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch. 2025-02-10 10:53 ` Dale @ 2025-02-10 11:15 ` Michael 2025-02-10 17:11 ` Dale 0 siblings, 1 reply; 6+ messages in thread From: Michael @ 2025-02-10 11:15 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1972 bytes --] 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. [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch. 2025-02-10 11:15 ` Michael @ 2025-02-10 17:11 ` Dale 2025-02-17 15:21 ` Dale 0 siblings, 1 reply; 6+ messages in thread From: Dale @ 2025-02-10 17:11 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 3086 bytes --] Michael wrote: > 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. I ran the ones above just to get a general idea. I got this. root@Gentoo-1 / # qfile -o $(find /usr/lib /usr/lib64 -name "*.packlist") root@Gentoo-1 / # qfile -o $(find /usr/lib /usr/lib64 -name "*.pm") root@Gentoo-1 / # qfile -o $(find /usr/lib /usr/lib64 -name "*.pod") root@Gentoo-1 / # qfile -o $(find /usr/lib /usr/lib64 -name "*.pl") root@Gentoo-1 / # I ran equery b for some random ones before I posted the original thread. It shows they belong to installed packages, perl mostly. So, really, they are not orphans is my thinking. I think it is more likely that something is confused. Something got out of sync or something. One thing I know for sure, I didn't install any of them by hand nor did I edit any of them. If they really do belong to packages, what is the best way to force emerge to be aware of it? I've already re-emerged it so that doesn't seem to do the job. I thought about emerge -ek world but doubt that would help any either. Any ideas? Dale :-) :-) [-- Attachment #2: Type: text/html, Size: 4429 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch. 2025-02-10 17:11 ` Dale @ 2025-02-17 15:21 ` Dale 0 siblings, 0 replies; 6+ messages in thread From: Dale @ 2025-02-17 15:21 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 3576 bytes --] Dale wrote: > Michael wrote: >> 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. > > > I ran the ones above just to get a general idea. I got this. > > > root@Gentoo-1 / # qfile -o $(find /usr/lib /usr/lib64 -name "*.packlist") > root@Gentoo-1 / # qfile -o $(find /usr/lib /usr/lib64 -name "*.pm") > root@Gentoo-1 / # qfile -o $(find /usr/lib /usr/lib64 -name "*.pod") > root@Gentoo-1 / # qfile -o $(find /usr/lib /usr/lib64 -name "*.pl") > root@Gentoo-1 / # > > > I ran equery b for some random ones before I posted the original > thread. It shows they belong to installed packages, perl mostly. So, > really, they are not orphans is my thinking. I think it is more > likely that something is confused. Something got out of sync or > something. One thing I know for sure, I didn't install any of them by > hand nor did I edit any of them. > > If they really do belong to packages, what is the best way to force > emerge to be aware of it? I've already re-emerged it so that doesn't > seem to do the job. I thought about emerge -ek world but doubt that > would help any either. > > Any ideas? > > Dale > > :-) :-) I just finished my weekly updates. I ran perl cleaner once again just to see if something got fixed. It still spits out a LONG list of files that are either edited and installed by hand, nether of which is true. There has to be a way to fix this somehow. I'm not sure deleting them all would be a good idea. Any ideas on a proper fix? Dale :-) :-) [-- Attachment #2: Type: text/html, Size: 5321 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-02-17 15:22 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-02-09 23:46 [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch Dale 2025-02-10 10:01 ` Michael 2025-02-10 10:53 ` Dale 2025-02-10 11:15 ` Michael 2025-02-10 17:11 ` Dale 2025-02-17 15:21 ` Dale
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox