On Mon, Sep 15, 2025 at 6:28 PM Samuel Sieb <[email protected]> wrote:
>
> On 9/15/25 3:16 PM, Jeffrey Walton wrote:
> > 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>.
>
> That is not a good suggestion.  Most of them you don't want to delete.
> This has been discussed before on this list.

I found a previous discussion at "What Does the Symlinks Command do?"
(December 2024),
<https://lists.fedoraproject.org/archives/list/[email protected]/thread/7OY4BTS2SJLTQ6O6CVPUPJRSZRYZRVIS/>.
But it does not say why using symlinks is a bad (not a good) choice.

Perhaps you can point us to the thread?

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