script to check all the libs/rps installed
We have build machines with RHEL and all of them should have extra libs installed on it. When a new machine is added, I need to check whether all the required libs installed or not. For this I need to write a script. Can anyone suggest me the best way.
I thought of writing a rpm package with all there libs as dependency. I think this needs lo of effort. Post name edit : script to check all the libs/rpm installed |
@xombboxer
Do you have a list of rpm's/lib packages list from your current RHEL server? I think it should not be that challenging, I am not guru but my line of thinking is produce a list on source server and then compare it with "target" server. Say rpm packages. Code:
rpm -qa|sort Please let me know if you want code for redirection and reading. Thank you. |
Yes,I have the list of libs
@sysmicuser, Idea is good but it will list all the RPMs, the list will be big. I don't want the default RPMs. I have some 20 libs those needs to be installed in addition to the default ones and I need to deal with 20 libs. I am thinking reading all the 20 libs from a text file and then check each one in a for loop |
No need to loop over it if you use 'rpm -qa' with your file and 'fgrep'.
|
If you know when the extra packages were added, the --last option may help.
Will output a list with install date / time : $ rpm -qa --last > last-packages.txt - |
Quote:
|
All times are GMT -5. The time now is 01:28 AM. |