Installed Files

Is there a command I could use to generate a text file listing of installed files?

Do you mean a listing of installed rpm applications?

If so, then try:
rpm -qa --last > installed-applications.txt

I’m not at a linux PC right now (and going by memory) so I hope I have that correct.

That is exactly what I was looking for.

Thanks, appreciate the response and info.

Regards.

Sorry oldcpu, for your memory. I used the man page and found:
rpm -qa --filesbypkg

Well, R4D4, I missed your last post, but when you are satisfied that’s all right. But oldcpu’s givess you the pavkages, and mine gives you all the files with those packages. I think the last is what you asked for.

Admittedly your option is more detailed and it is certainly useful to know where each is located. Thanks.

Actually I don’t recall ever using that rpm argument. I’ll have to try it at home. Thanks for sharing that.

Another useful one, when looking for dependencies for a specific rpm, is:
rpm -qpR package.rpm
… it can be useful if one’s application is not working, and one wishes to check to see if any of the dependency applications may have a hiccup (and hence need a list of the dependencies)…

… (although I am getting off topic). :slight_smile:

… or simply (if the rpm “package.rpm” is installed):
rpm -qR package

… again, … a bit off topic.

Hey! don’t let being off topic deter you folks. I am soaking up the how to stuff so thanks again.:smiley:

Regards.:slight_smile:

On 2008-06-11, R4D4 <R4D4@no-mx.forums.opensuse.org> wrote:
>
> Is there a command I could use to generate a text file listing of
> installed files?

If you’re looking for a list of installed applications:

for I in ls ‘/usr/bin’
do
apropos $I 2>/dev/null
done

PS: the quotes are wrong, but can’t get them right from this terminal.
You need the other ones, can someone correct?


The sand remembers once there was beach and sunshine
but chip is warm too
– haiku from Effector Online, Volume 1, Number 6

I was playing with this command this morning. … I find it can be quite useful in a sequence of commands. Lets say one is looking at the dependencies of an application (I’ll use amarok as an example) and notes it needs some libraries, and one is curious as to where that library comes from. One, rather long winded, way to do this is:

rpm -qR amarok #that will give a list of amarok dependencies of which libqt-mt.so.3 is of example interest
rpm -qa --filesbypkg | grep libqt-mt.so.3 #this will give the location of this library as “/usr/lib/qt3/lib/”
rpm -qf /usr/lib/qt3/lib/libqt-mt.so.3 #which tells one this lib comes with rpm qt3-3.3.8-76.2

Maybe there is a quicker way to do this?

Well, you simply could do
man rpm
(or in the Konqueror locationbar: man:rpm) to read al about it. As long as you stick to the inquiry (-q) option, you can play around. Enjoy!

This gives you a list of executables that happen to be in /usr/bin/ and have a man page of the same name. The link between this list and the rpm installed packages (let alone between this list and the list of all files that came with the rpm installed packages) is remote.

Btw you do not need those ’ there. I suppose you mean the but then around thels /usr/bin/`.

On 2008-06-12, hcvv <hcvv@no-mx.forums.opensuse.org> wrote:

>> If you’re looking for a list of installed applications:
>>
>> for I in ls ‘/usr/bin’
>> do
>> apropos $I 2>/dev/null
>> done
>>
>>
>> PS: the quotes are wrong, but can’t get them right from this terminal.
>> You need the other ones, can someone correct?
>
> This gives you a list of executables that happen to be in /usr/bin/ and
> have a man page of the same name. The link between this list and the rpm
> installed packages (let alone between this list and the list of all
> files that came with the rpm installed packages) is remote.

Hey, I thought the OP might have been looking for installed applications,
rather then actual files. I had this trick handly, so I posted it.

> Btw you do not need those ’ there. I suppose you mean the ` but then

around the ls /usr/bin/.

Yes. As I said in my PS, the terminal I was using didn’t allow for that
char, it seems. Or the combination editor/terminal, don’t know.
Anyway, thanks for correcting, but I guess the OP had no use for it, anyway.


The sand remembers once there was beach and sunshine
but chip is warm too
– haiku from Effector Online, Volume 1, Number 6