Dne 01. 05. 24 v 7:20 odp. Christoph Karl via devel napsal(a):
*) Removal or Upgrade of RPMs/distribution should not left files behind.

Two cases where files are intentionaly left behind:

1) configuration files

This can be handled by:

  rpmconf --all --conf

2) %ghost files - usually log files. You surely want to keep them and on disk. But not all spec files mark them as ghost - usually owns only the directory and not the files. And if they own the file itself, then rotated files are not owned for sure.

I have no solution for this.

find/usr-exec/usr/bin/bash-c'rpm -qf

Ouch you are looking for files in /usr only. So you do not consider the two 
cases above at all.

In my case it found BTW:

/usr/bin/anime-games-launcher

I am not sure how others appear there, but I know this one. It comes from

https://copr.fedorainfracloud.org/coprs/retrozinndev/anime-games-launcher

and the spec file has:

https://download.copr.fedorainfracloud.org/results/retrozinndev/anime-games-launcher/fedora-40-x86_64/07270437-anime-games-launcher/anime-games-launcher-pt.spec

%post
# create link of binary
ln -sf %{install_dir}/%{name} %{_bindir}/%{name}
# apply exec permision to binary
chmod +x %{install_dir}/%{name}

Not sure if this can be handled on distribution level. For packages from 3rd 
party repos.

--
Miroslav Suchy, RHCA
Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys
--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to