Hi plz help me in writing scripts
Hi..
I'm using redhat 2.4.20 I'm trying to write a shell script to display the file system packages and software packages of my system For that i used the command, rpm -qa | more ( to display system packages) but the output is not so clean.. i need an exact system packages instead of a vague one.. plz help me Rammu |
Do you want to filter something like rpm -qia ??
|
s i've to filter out to view only the packages installed in the system.. not other stuffs..
the output of my command should be a clear one plz help me Thanks in advance |
Sorry, I thought yum gives random garbage, and rpm only installed packages. If in RH it is no more the case, then sorry. Maybe you can still filter rpm -qia by something like "grep Status: installed" -B2 , but I don't know exactly (for reasons mentioned under my name on the left..)..
|
I think with this you can get something near what you want
rpm -qia | grep Name | more |
What do you mean "output is not clean"? Please elaborate. If you want a more formatted output, you will have to pipe the output to an appropriate program.
End |
All times are GMT -5. The time now is 01:03 PM. |