Have you looked at the symlinks program it does the same thing. There is info located at: https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/#Resolving_post-upgrade_issues which is the dnf system upgrade page David On Sat, 17 Sep 2022 06:26:54 +1000 users@xxxxxxxxxxxxxxxxxxxxxxx wrote: > Did > for a in $(cat badlinks-clean); do ls -l $a; done > > and all links show as broken? > > Did Test > # mkdir testbroke > # cd testbroke/ > # ln -s /badlinks-clean test1 > # ln -s /badlinks-cleanx test2 > # ls -l > total 0 > lrwxrwxrwx. 1 root root 15 Sep 17 06:19 test1 -> > /badlinks-clean > lrwxrwxrwx. 1 root root 16 Sep 17 06:19 test2 -> > /badlinks-cleanx > > Both badlinks and badlinks-clean only contain > ./test2 > > So only seems to list links that are broken. > > > On 16 Sep 2022 at 18:50, Patrick O'Callaghan wrote: > > Subject: Re: Question on bad links? > From: Patrick O'Callaghan > <pocallaghan@xxxxxxxxx> > To: users@xxxxxxxxxxxxxxxxxxxxxxx > Date sent: Fri, 16 Sep 2022 18:50:30 +0100 > Send reply to: Community support for Fedora > users <users@xxxxxxxxxxxxxxxxxxxxxxx> > > > On Sat, 2022-09-17 at 02:58 +1000, Michael D. Setzer II via users > > wrote: > > > Not clear on differnce be -l and -L? > > > > They have completely different meanings: > > > > '-xtype l' finds files which are themselves symlinks. That's what > > your script is doing. Nothing I can see in the script detects that > > those links are bad, just that they are links, i.e. it will detect > > good links as well, so you probably don't want to just remove them > > automatically. > > > > '-L' means "follow symbolic links while descending the tree". The > > default for find is not to do this, as it can often mean searching > > outside the tree. > > > > You might want to install the symlinks package: > > > > Name : symlinks > > Version : 1.7 > > Release : 6.fc36 > > Architecture : x86_64 > > Size : 22 k > > Source : symlinks-1.7-6.fc36.src.rpm > > Repository : @System > > Summary : A utility which maintains a system's symbolic links > > URL : http://ibiblio.org/pub/Linux/utils/file/ > > License : Copyright only > > Description : The symlinks utility performs maintenance on > > symbolic links. Symlinks : checks for symlink problems, including > > dangling symlinks which point : to nonexistent files. Symlinks can > > also automatically convert : absolute symlinks to relative symlinks. > > : > > : Install the symlinks package if you need a program > > for maintaining : symlinks on your system. > > > > poc > > _______________________________________________ > > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > > 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/users@xxxxxxxxxxxxxxxxxxxxxxx > > Do not reply to spam, report it: > > https://pagure.io/fedora-infrastructure/new_issue > > > > +------------------------------------------------------------+ > Michael D. Setzer II - Computer Science Instructor (Retired) > mailto:mikes@xxxxxxxx > mailto:msetzerii@xxxxxxxxx > Guam - Where America's Day Begins > G4L Disk Imaging Project maintainer > http://sourceforge.net/projects/g4l/ > +------------------------------------------------------------+ > > _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx 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/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue