How can I get a list of software that was installed via rpm
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Rep:
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.
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.
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Original Poster
Rep:
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:
Originally posted by TruongAn 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?
use
Code:
rpm -qa --last | less
to see the installed packages in reverse chronological order. also the man page for rpm is very informative and includes many examples of the kinds of queries you are asking about. check it out.
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.
Last edited by muddywaters; 10-03-2005 at 10:45 AM.
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Original Poster
Rep:
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
Originally posted by TruongAn 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?
Well, if you cannot extract the info you seek from the rpm man page (one of the most extensive man pages out there), perhaps this is not the OS for you. It seems that in addition to you inability to read the man page, you also cannot read the replies to your post, as several people suggested you use rpm -qa --last | less On my system, the first tolines of this output are
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.
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.