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
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 at ivazquez.net> | centos.ivazquez.net | | gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72 | _______________________________________________ | CentOS mailing list | CentOS at centos.org | lists.centos.org/mailman/listinfo/centos -- Andrew Rice Jr Systems Analyst Carrier Management Systems, Inc. 500 Chestnut Street, Suite 500 Abilene, TX 79602 USA support: (325) 672-0975 office: (325) 677-5900 fax: (325) 676-0529 nams.net NAMS III, NAMS 2000 Centralized, NAMS BMX
> 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 >> listThat 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 at doublesparks.net>
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 at ivazquez.net> centos.ivazquez.net gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <lists.centos.org/pipermail/centos/attachments/20060127/4210e201/attachment-0005.sig>
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