Does anyone know in centos how to create an md5sum list based on the current rpms that I have installed right now on my box?
I tried something like rpm -q -v | md5sum >> list
but didnt work.
Andrew
Does anyone know in centos how to create an md5sum list based on the current rpms that I have installed right now on my box?
I tried something like rpm -q -v | md5sum >> list
That is not a valid rpm command line. The following worked for me:
# rpm -qa | md5sum 9f97ebe51b3a7e3fdf6b8ecfa913c726 -
Alfred
Andrew Rice said:
Does anyone know in centos how to create an md5sum list based on the current rpms that I have installed right now on my box?
Not sure the question is clear... are you asking to get an md5 sig for each file owned by an installed RPM? Or the sig on the RPM itself?
If the former, a real quick starting point might be: rpm -qa | xargs -i rpm -ql {} | xargs -i md5sum {}
=========== Alan Sparks, UNIX/Linux Systems Administrator asparks@doublesparks.net
well I just installed a system...not sure if redhat keeps a list of signatures for each rpm installed or what. but I just mainly wanted to run a md5sum list and gather up one for every rpm I have installed now...put it someplace safe...and if I want to later...I can run a check with that list with what I have installed already.
I just mainly wanted to make a list with sig on all the rpms I have and put them into a text file.
| Andrew Rice said: | > Does anyone know in centos how to create an md5sum list based on the | > current rpms that I have installed right now | > on my box? | | Not sure the question is clear... are you asking to get an md5 sig for | each file owned by an installed RPM? Or the sig on the RPM itself? | | If the former, a real quick starting point might be: | rpm -qa | xargs -i rpm -ql {} | xargs -i md5sum {} | | =========== | Alan Sparks, UNIX/Linux Systems Administrator asparks@doublesparks.net | | _______________________________________________ | CentOS mailing list | CentOS@centos.org | http://lists.centos.org/mailman/listinfo/centos
Andrew Rice wrote:
well I just installed a system...not sure if redhat keeps a list of signatures for each rpm installed or what. but I just mainly wanted to run a md5sum list and gather up one for every rpm I have installed now...put it someplace safe...and if I want to later...I can run a check with that list with what I have installed already.
I just mainly wanted to make a list with sig on all the rpms I have and put them into a text file.
| Andrew Rice said: | > Does anyone know in centos how to create an md5sum list based on the | > current rpms that I have installed right now | > on my box? | | Not sure the question is clear... are you asking to get an md5 sig for | each file owned by an installed RPM? Or the sig on the RPM itself? | | If the former, a real quick starting point might be: | rpm -qa | xargs -i rpm -ql {} | xargs -i md5sum {} |
you might want to look at the tripwire application ( available from a few repos ) , it does something similar to what you have in mind, and will do scheduled checks.
The other option is just a plain and simple rpm -V <pkgname>. that will also verify the files, owned by that package, for changes since install time.
Also, try not top posting :)
On Fri, 2006-01-27 at 07:07 -0600, Andrew Rice wrote:
Does anyone know in centos how to create an md5sum list based on the current rpms that I have installed right now on my box?
rpm -qa --qf "%{sigmd5} %{name}-%{epoch}:%{version}-%{release}.%{arch}\n"
wow thank you ...
| On Fri, 2006-01-27 at 07:07 -0600, Andrew Rice wrote: | > Does anyone know in centos how to create an md5sum list based on the current rpms that I have installed right now | > on my box? | | rpm -qa --qf "%{sigmd5} %{name}-%{epoch}:%{version}-%{release}.%{arch}\n" | | -- | Ignacio Vazquez-Abrams ivazquez@ivazquez.net | http://centos.ivazquez.net/ | | gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
| _______________________________________________ | CentOS mailing list | CentOS@centos.org | http://lists.centos.org/mailman/listinfo/centos
On Jan 27, 2006, at 2:19 PM, Ignacio Vazquez-Abrams wrote:
On Fri, 2006-01-27 at 07:07 -0600, Andrew Rice wrote:
Does anyone know in centos how to create an md5sum list based on the current rpms that I have installed right now on my box?
rpm -qa --qf "%{sigmd5} %{name}-%{epoch}:%{version}-%{release}.% {arch}\n"
perhaps followed by sort for easier visual lookup
rpm -qa --qf "%{sigmd5} %{name}-%{epoch}:%{version}-%{release}.% {arch}\n" | sort +1
Tony Schreiner