{"id":5179,"date":"2019-10-18T18:34:20","date_gmt":"2019-10-18T10:34:20","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5179"},"modified":"2019-10-18T18:34:22","modified_gmt":"2019-10-18T10:34:22","slug":"rpmverify","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/rpmverify","title":{"rendered":"rpmverify\u547d\u4ee4 – \u9a8c\u8bc1\u5df2\u5b89\u88c5\u7684RPM\u8f6f\u4ef6\u5305\u7684\u6b63\u786e\u6027"},"content":{"rendered":"\n
rpmverify\u547d\u4ee4\u7528\u6765\u9a8c\u8bc1\u5df2\u5b89\u88c5\u7684rpm\u8f6f\u4ef6\u5305\u7684\u6b63\u786e\u6027\u3002 <\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> rpmverify [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u9a8c\u8bc1\u6240\u6709\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n \u6539\u53d8\u8f6f\u4ef6\u5305\u6743\u9650\uff1a<\/p>\n\n\n\n \u5982\u679c\u6062\u590d\u6743\u9650\u540e: <\/p>\n\n\n\n \u5982\u679c\u7f16\u8f91\u4e00\u4e2a\u6587\u4ef6,\u5e76\u589e\u52a0\u5185\u5bb9,\u5982\u679c\u4fee\u6539\u8fc7\u6765,\u4fee\u6539\u65f6\u95f4\u5c31\u4f1a\u53d8\u5316:<\/p>\n\n\n\n \u4e0d\u9a8c\u8bc1\u8f6f\u4ef6\u5305\u7684md5\u6458\u8981:<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" rpmverify\u547d\u4ee4\u7528\u6765\u9a8c\u8bc1\u5df2\u5b89\u88c5\u7684rpm\u8f6f\u4ef6\u5305\u7684\u6b63\u786e\u6027\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1a rpmverify [\u53c2\u6570] \u5e38\u7528\u53c2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5179"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5179"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5179\/revisions"}],"predecessor-version":[{"id":5228,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5179\/revisions\/5228"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-Va<\/td> \u9a8c\u8bc1\u6240\u6709\u8f6f\u4ef6\u5305 <\/td><\/tr> -Vf<\/td> \u9a8c\u8bc1\u6307\u5b9a\u8f6f\u4ef6\u5305 <\/td><\/tr> --nomd5 <\/td> \u4e0d\u9a8c\u8bc1\u8f6f\u4ef6\u5305\u7684md5\u6458\u8981 <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# rpmverify -Va<\/pre>\n\n\n\n
[root@linuxcool ~]# rpmverify -Vf \/bin\/touch \n[root@linuxcool ~]# rpm -qf \/bin\/touch\ncoreutils-8.4-43.el6.x86_64 \n[root@linuxcool ~]# vim \/bin\/touch \n[root@linuxcool ~]# ll -h \/bin\/touch \n-rwxr-xr-x. 1 root root 47K May 11 2016 \/bin\/touch \n[root@linuxcool ~]# chmod 777 \/bin\/touch \n[root@linuxcool ~]# ll -h \/bin\/touch \n-rwxrwxrwx. 1 root root 47K May 11 2016 \/bin\/touch\n[root@linuxcool ~]# rpmverify -Vf \/bin\/touch\n.M....... \/bin\/touch <\/pre>\n\n\n\n
[root@linuxcool ~]# chmod 755 \/bin\/touch \n[root@linuxcool ~]# ll -h \/bin\/touch\n-rwxr-xr-x. 1 root root 47K May 11 2016 \/bin\/touch \n[root@linuxcool ~]# rpmverify -Vf \/bin\/touch <\/pre>\n\n\n\n
[root@linuxcool ~]# rpmverify -Vf \/etc\/ssh\/sshd_config #\u589e\u52a0\u5185\u5bb9\nS.5....T. c \/etc\/ssh\/sshd_config \n[root@linuxcool ~]# vim \/etc\/ssh\/sshd_config #\u53bb\u6389\u589e\u52a0\u5185\u5bb9\n[root@linuxcool ~]# rpmverify -Vf \/etc\/ssh\/sshd_config \n.......T. c \/etc\/ssh\/sshd_config <\/pre>\n\n\n\n
[root@linuxcool ~]# rpmverify --nomd5 -Vf \/bin\/touch <\/pre>\n\n\n\n