Let's say I want to create a new package that installs a command, i.e. adds a new file to /bin or /usr/bin.But I have yet to name the command.  So if I'm to run into conflicts, I want to find out ASAP.So given that I have a few repos (Fedora, RPM fusion...), is there a query to help me verify that a particular file/command would not be installed by any other package currently available?
Query all paths in all packages/repos without installing?
yum
Do not go the route of just checking fedora, because then you run into a problem when you want to package it somewhere else, or fedora brings in an existing app who's moniker collides with yours.  I have had a distro packager force me to change the (short, snappy) name of a command in an app I wrote when it went into official repos, because it collided with some ancient, but still available cruft.  You might as well get it right now.Start with a reasonably unique name and search the net using a search engine (or two). Also search at least sourceforge and github directly.  Even if something appears to target a completely different OS (windows, IOS, etc), avoid the collision.If you cannot search the net using just the command name (i.e., do not search linux mycommandname) because it returns too much unrelated whatever, then the word is not unique enough (this includes words that turn out to exist in a foriegn language, brand names of pop from Australia, etc). This probably means at least 5 characters; less than that at this point is just begging for coincidence, and more is probably better.  It is better to use a long, descriptive name for a command (superFooBar) and let people create their own short alias (foo) if they want than to create a short near meaningless one (acronyms, words with vowels removed, etc.).  This is not going into POSIX any time soon, it's an obscure, optional application and should be labelled for clarity and not convenience.If all you want to do is search the repos available on a particular system, you can use yum provides:yum provides */superFooBarNote the quotes with a glob star inside; this prevents shell expansion it so it will be passed literally to yum, which treats it as a wildcard in the same way.  This will search the full path of all files installed by all packages in all repos, so matches might include /usr/bin/superFooBar, /etc/default/superFooBar etc.Again, I recommend against this if you have any intention of distributing this publicly, or privately within an organization.  If it's just for you and machines you have some personal responsibility for, fine -- otherwise it is not thorough enough.