I'm just wondering suppose I want to know which package the groups command comes from. I assume without really checking that the groups file is located in /sbin/groups, equery belongs /sbin/groups. I think when using fullpath names equery should first check if the file exists or not this would save alot of execution time when the file you specified on the command line can't be located on your system. Reproducible: Always Steps to Reproduce: 1. 2. 3.
What if I deleted an important file but didn't know what package it belonged to? How would I figure out what package to reinstall to duplicate the file if not for "equery belongs <missing_file>" ?
(In reply to comment #1) > What if I deleted an important file but didn't know what package it belonged to? > How would I figure out what package to reinstall to duplicate the file if not > for "equery belongs <missing_file>" ? In that case you have several options - present the user with a prompt asking him if he really wants to search a file that doesn't exists ? - add an extra option -y to disable this prompt "yes to all"
*** This bug has been marked as a duplicate of 94131 ***
oops, wrong field
I am not going to do this for the reasons listed in comment #1