If the package you are looking for is torcs, then it's right
. I'm not quite sure which package you are looking for, so replace the rcs for the package/application you wanna find.
rpm -qa | grep rcs
means to query or list (q) all (a) rpm's. Take that output list (|) and use as input to grep, which by it turns will display only rcs.
This should work with any rpm based distribution. Other distributions are different, Slackware, for example, has a list of all installed packages at /var/packages or something like that (can't remember the whole path
).
Now, if you are actually looking for which distribution you are using, it can be a bit more tricky. Try "uname -rs", it will display your kernel version and hopefully your distributions name and version.
If I'm getting all this wrong, please tell me what you are looking for, I'm not sure if it's firefox, SuSE version or torcs or something else
Regards!