Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-02-2005, 09:06 AM
|
#1
|
|
Member
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 722
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.
|
|
|
|
10-02-2005, 09:10 AM
|
#2
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Checking out the rpm manual would have been a good start. The command to check all installed packages is
The list will be very long so you may need to pipe the output to less e.g.
To find out if a specific package is installed you would do
Code:
$rpm -qa | grep -i nameOfPackage
You can also use a GUI like Synaptic, YAST and rpmdrake.
|
|
|
|
10-02-2005, 10:15 AM
|
#3
|
|
Member
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427
Rep:
|
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.
|
|
|
|
10-03-2005, 09:47 AM
|
#4
|
|
Member
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 722
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?
|
|
|
|
10-03-2005, 10:41 AM
|
#5
|
|
Member
Registered: Sep 2005
Location: US
Distribution: FC 4
Posts: 39
Rep:
|
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.
|
|
|
|
10-03-2005, 10:43 AM
|
#6
|
|
Member
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427
Rep:
|
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.
|
|
|
|
10-04-2005, 02:08 AM
|
#7
|
|
Member
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 722
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?
|
|
|
|
10-04-2005, 03:10 AM
|
#8
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
|
10-04-2005, 07:13 AM
|
#9
|
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
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
Last edited by homey; 10-04-2005 at 07:18 AM.
|
|
|
|
10-04-2005, 11:04 AM
|
#10
|
|
Member
Registered: Sep 2005
Location: US
Distribution: FC 4
Posts: 39
Rep:
|
Re: Of course I have checked the man page but
Quote:
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.
|
|
|
|
10-04-2005, 11:53 AM
|
#11
|
|
Member
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 722
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.
Last edited by TruongAn; 10-04-2005 at 12:35 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:12 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|