 |
NickSoft Linux Cookbook Quick howto's, Real live examples.
|
|
View previous topic :: View next topic |
Vote for this article |
1 - useless |
|
0% |
[ 0 ] |
2 - bad |
|
0% |
[ 0 ] |
3 - not so bad |
|
0% |
[ 0 ] |
4 - good |
|
0% |
[ 0 ] |
5 - Excelent |
|
0% |
[ 0 ] |
|
Total Votes : 0 |
|
Author |
Message |
NickSoft Site Admin

Joined: 13 Nov 2006 Posts: 22
|
Posted: Mon Nov 13, 2006 2:45 pm Post subject: [RedHat,Mandrake] Faster rpmfind command |
|
|
How do you check for a specific rpm if it is installed? You can do it this way:
rpm -q <package name>
This way you need to enter full name
So you can do this:
rpm -qa|grep -i <part of package name>
But it's slow
Then why don't you make scripts to save rpm list. This will speed up the query:
1. Script for saving rpm list for faster reference (name it rpmlist):
Code: | #!/bin/bash
rpm -qa >~/rpmlist |
2. Script for searching in rpmlist(name it rpmfind):
Code: | #!/bin/bash
grep -i $1 ~/rpmlist |
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|