In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Do not know how to use the rpmverify command in linux to verify the correctness of the installed RPM package? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.
The rpmverify command is used to verify the correctness of the installed rpm package.
Syntax format: rpmverify [parameters]
Common parameters:
-Va verifies all packages-Vf verifies specified packages-- nomd5 does not validate the md5 summary of packages
Reference example
Verify all packages:
[root@linuxcool ~] # rpmverify-Va
Change package permissions:
[root@linuxcool] # rpmverify-Vf / bin/touch [root@linuxcool] # rpm-qf / bin/touchcoreutils-8.4-43.el6.x86_64 [root@linuxcool] # vim / bin/touch [root@linuxcool] # ll-h / bin/touch-rwxr-xr-x. 1 root root 47K May 11 2016 / bin/touch [root@linuxcool ~] # chmod 777 / bin/touch [root@linuxcool] # ll-h / bin/touch-rwxrwxrwx. 1 root root 47K May 11 2016 / bin/touch [root@linuxcool ~] # rpmverify-Vf / bin/touch.M. / bin/touch
If the permissions are restored:
[root@linuxcool] # chmod 755 / bin/touch [root@linuxcool ~] # ll-h / bin/touch-rwxr-xr-x. 1 root root 47K May 11 2016 / bin/touch [root@linuxcool ~] # rpmverify-Vf / bin/touch
If you edit a file and add content, if you modify it, the modification time will change:
[root@linuxcool ~] # rpmverify-Vf / etc/ssh/sshd_config # add content S.5T. C / etc/ssh/sshd_config [root@linuxcool ~] # vim / etc/ssh/sshd_config # remove the content [root@linuxcool ~] # rpmverify-Vf / etc/ssh/sshd_config. T.C / etc/ssh/sshd_config
Do not verify the md5 summary of the package:
[root@linuxcool ~] # rpmverify-- nomd5-Vf / bin/touch Thank you for reading this article carefully. I hope it is helpful for everyone to share the contents of verifying the correctness of the installed RPM software package using the rpmverify command in linux. At the same time, I also hope that you can support it, pay attention to the industry information channel, find out if you encounter problems, and learn detailed solutions!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.