From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] perl-cleaner --reallyall and leftover files, that I didn't touch.
Date: Mon, 10 Feb 2025 10:01:04 +0000 [thread overview]
Message-ID: <8489487.T7Z3S40VBb@rogueboard> (raw)
In-Reply-To: <e4f7f295-836b-ac5f-71e9-3e33a8ca347f@gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2025-02-10 10:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2025-02-10 10:53 ` Dale
2025-02-10 11:15 ` Michael
2025-02-10 17:11 ` Dale
2025-02-17 15:21 ` Dale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8489487.T7Z3S40VBb@rogueboard \
--to=confabulate@kintzios.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox