How can I get a list of software that was installed via rpm
Hi all.
I 've been using rpm to install software for years. But a funny things is up to now, I still don't know how to get a list of installed program. I maintain this list myself. Take not whenever I installed something, so I can remove these software. And now, I lose my list and there is some software which name I cann't remember. I think rpm must have a list like this, and how can I get this list. Please show me. |
Checking out the rpm manual would have been a good start. The command to check all installed packages is
Code:
$rpm -qa Code:
$rpm -qa | less Code:
$rpm -qa | grep -i nameOfPackage |
Here's a nifty trick I found somewhere.
Open a terminal and key in this: rpm -qa > installed-programs This will create a file in your home directory listing the programs. |
Is there any way to obtain the date of the installion
The list come from rpm -qa take 5 minutes to display. Therefore, it is so hard
to read such a long list. Is there any way to obtain the date of the isntallion so I can filtered the list to find out the package I want? |
Re: Is there any way to obtain the date of the installion
Quote:
Code:
rpm -qa --last | less |
If you enter 'man rpm' in a terminal a list of options can be found for this command. The option needed for this is 'last'.
So 'rpm -qa -last' should make a list in cronological order. Edit: Beat me to it! I really need to start typing with 2 fingers. :) |
Of course I have checked the man page but
If I found the information in the man page I wouldn't be here to talk.
The man page show me that there is -q option, but I don't see -qa option. On the other hand, I cannot found any way to obtain the date of the installion. Is it true that there is no way to get the date? |
I am not sure you can get the date of installation but there could be a way. Anyway, take a look at rpm.org, maybe you will find what you are looking for.
|
If you run the command: rpm --querytags it shows a list of querry options. One of those options is installtime.
Edit: The date format is obtained with :date Code:
rpm -qa --qf 'Installed on %{installtime:date} %{vendor} %{name} %{version}-%{release}\n' | sort > list.txt |
Re: Of course I have checked the man page but
Quote:
setools-gui-2.1.2-1.1 Mon 03 Oct 2005 03:41:14 PM PDT selinux-policy-targeted-sources-1.27.1-2.3 Mon 03 Oct 2005 03:41:11 PM PDT cpuspeed-1.2.1-1.23_FC4 Mon 03 Oct 2005 03:41:11 PM PDT which part of this output confuses you about the date? advice: don't get snippy in the forum when you know not about which you speak. |
OK. The problem is solved now.
Everything is alright now. rpm -qa --last refused to work in kconsole terminal but it work if I start a virtual console instead of Desktop environment. It think my problem is the lack of RAM, not rpm. There must be something wrong with my mind these day. |
All times are GMT -5. The time now is 07:01 AM. |