On Mon, Sep 15, 2025 at 5:34 PM Michael D. Setzer II via users
<[email protected]> wrote:
>
> Have a script I've use for years, and had assumed it was left over
> things, but recently did a clean install on machine and it has about
> 2/3 that of a machine that has had many updates over years.
>
> /findbadlink
>
> find . -xtype l >/badlinks 2>ERR
> grep -v '/proc\|/run' </badlinks >/badlinks-clean
>
> run in / to check system.
>
> # wc -l badlinks*
>   1324 badlinks
>    696 badlinks-clean
>
> Machine with clean install of Fedora 42 has 965 and 487.
>
> Is this normal?
> Is it something just to ignore?
> Is it something that should be fixed?
> If so what would be best method?

I use the symlink program to find and delete dangling links. Something
like this will tell you how many bad links you have:

   $ sudo su -
   ...
   # symlinks -r / | grep dangling

Or you could pipe it to `wc -l` for a count of the dangling links.

Once you see the list and approve of them, you can delete the dangling
links with the `-d` option:

    # symlinks -r -d /

Also see 
<https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/#sect-clean-up-old-symlinks>.

Jeff
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to