-Va:验证所有软件包;

来自: http://man.linuxde.net/rpmverify


-Va:验证所有软件包;
[root@DB ~]# rpmverify -Va
....L.... c /etc/pam.d/fingerprint-auth
....L.... c /etc/pam.d/password-auth
....L.... c /etc/pam.d/smartcard-auth
....L.... c /etc/pam.d/system-auth
.......T. c /etc/inittab
只有校验失败时,才会输出内容:
S= 大小改变
M= 权限改变
5=MD5改变,说明文件内容被改了 : md5sum
L= 连接改变
D= 设备改变
U=用户改变
G= 组改变
T=修改时间改变

查看服务器中有:

# rpmverify -Va
S.5....T. c /etc/salt/minion
Unsatisfied dependencies for php-5.3.3-49.el6.x86_64:
php-cli(x86-64) = 5.3.3-49.el6 is needed by php-5.3.3-49.el6.x86_64
S.5....T. c /root/.bash_profile
..5....T. c /etc/yum/pluginconf.d/fastestmirror.conf
S.5...... /bin/cpio
S.5....T. c /etc/yum.repos.d/epel.repo
Unsatisfied dependencies for httpd-2.2.15-59.el6.centos.x86_64:
httpd-tools = 2.2.15-59.el6.centos is needed by httpd-2.2.15-59.el6.centos.x86_64
Unsatisfied dependencies for drupal7-7.54-1.el6.noarch:
wget is needed by drupal7-7.54-1.el6.noarch
Unsatisfied dependencies for php-xml-5.3.3-49.el6.x86_64:
libexslt.so.0()(64bit) is needed by php-xml-5.3.3-49.el6.x86_64
libxslt.so.1()(64bit) is needed by php-xml-5.3.3-49.el6.x86_64
libxslt.so.1(LIBXML2_1.0.11)(64bit) is needed by php-xml-5.3.3-49.el6.x86_64
libxslt.so.1(LIBXML2_1.0.13)(64bit) is needed by php-xml-5.3.3-49.el6.x86_64
libxslt.so.1(LIBXML2_1.0.18)(64bit) is needed by php-xml-5.3.3-49.el6.x86_64
libxslt.so.1(LIBXML2_1.0.22)(64bit) is needed by php-xml-5.3.3-49.el6.x86_64
libxslt.so.1(LIBXML2_1.0.24)(64bit) is needed by php-xml-5.3.3-49.el6.x86_64
SM5....T. c /etc/ssh/sshd_config
..5...... /usr/lib64/liblzo2.so.2.0.0
..5...... /lib64/libply-splash-core.so.2.0.0
..5...... /lib64/libply.so.2.0.0
..5...... /usr/lib64/libply-boot-client.so.2.0.0
S.5....T. c /etc/zabbix/zabbix_agentd.conf
S.5....T. c /etc/nscd.conf
....L.... c /etc/pam.d/fingerprint-auth
....L.... c /etc/pam.d/password-auth
....L.... c /etc/pam.d/smartcard-auth
....L.... c /etc/pam.d/system-auth
S.5....T. c /etc/security/limits.conf
S.5...... /lib64/libnspr4.so
..5...... /lib64/libplc4.so
..5...... /lib64/libplds4.so
S.5....T. c /etc/yum.conf
S.5....T. c /etc/yum.repos.d/CentOS-Base.repo
S.5....T. c /etc/hosts.deny
S.5....T. c /etc/profile
S.5....T. c /etc/sudoers
S.5....T. c /etc/pam.d/su
S.5....T. c /etc/rc.d/rc.local
SM5....T. /etc/rc.local
S.5....T. c /etc/sysctl.conf

改变权限:M

[root@DB ~]# rpmverify -Vf /bin/touch
[root@DB ~]# rpm -qf /bin/touch
coreutils-8.4-43.el6.x86_64
[root@DB ~]# vim /bin/touch
[root@DB ~]# ll -h /bin/touch
-rwxr-xr-x. 1 root root 47K May 11 2016 /bin/touch
[root@DB ~]# chmod 777 /bin/touch
[root@DB ~]# ll -h /bin/touch
-rwxrwxrwx. 1 root root 47K May 11 2016 /bin/touch
[root@DB ~]# rpmverify -Vf /bin/touch
.M....... /bin/touch

如果恢复权限后:

[root@DB ~]# chmod 755 /bin/touch
[root@DB ~]# ll -h /bin/touch
-rwxr-xr-x. 1 root root 47K May 11 2016 /bin/touch
[root@DB ~]# rpmverify -Vf /bin/touch
#恢复权限后,壮态正常了

如果编辑一个文件,并增加内容,如果修改过来,修改时间就会变化:

[root@DB ~]# rpmverify -Vf /etc/ssh/sshd_config #增加内容
S.5....T. c /etc/ssh/sshd_config
[root@DB ~]# vim /etc/ssh/sshd_config #去掉增加内容
[root@DB ~]# rpmverify -Vf /etc/ssh/sshd_config
.......T. c /etc/ssh/sshd_config
-Va:验证所有软件包;

来自: http://man.linuxde.net/rpmverify

-Va:验证所有软件包;

来自: http://man.linuxde.net/rpmverify

-Va:验证所有软件包;

来自: http://man.linuxde.net/rpmverify

rpmverify命令用来验证已安装的rpm软件包的正确性的更多相关文章

  1. Ubuntu系统下命令行查看自己已安装的桌面环境问题

    原因:有时我们进行远程连接时需要知道我们的Ubuntu系统已安装的桌面环境,这时我们可以使用[dpkg]命令. [dpkg]:dpkg命令是Debian Linux系统用来安装.创建和管理软件包的实用 ...

  2. CentOS6使用第三方yum源安装更多rpm软件包

    引言:       CentOS自带的yum源中rpm包数量有限,很多时候找不到我们需的软件包,(例如:要安装网络连接查看软件iftop,默认设置下无法使用yum命令安装),下面教大家在CentOS ...

  3. 安装zsh后出现命令行无法识别已安装的node

    安装zsh之后,在命令行输入 node -v,会出现 command not found: node. 出现原因是:使用bash输入终端指令识别得是~/.bash_profile,而安装zsh则无法识 ...

  4. SLES 12 SP2 安装src.rpm软件包

      系统型号: SUSE Enterprise  mv systemd-228-117.12.src.rpm   systemd     cd systemd 执行下面的命令解压:     rpm2c ...

  5. linux光盘使用、rpm软件包、yum软件仓库安装使用

    转至:https://blog.51cto.com/zpeng/1532520 一.光盘文件使用 1,RHEL5(x86_64)光盘结构 Cluster              //集群二进制包 C ...

  6. Linux查看系统信息的一些命令及查看已安装软件包的命令

    转自:http://cheneyph.iteye.com/blog/824746 系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看 ...

  7. (十)Linux查看系统信息的一些命令及查看已安装软件包的命令

    转自:http://cheneyph.iteye.com/blog/824746 系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看 ...

  8. linux常用命令(查看某些软件是否已安装)

    查看imap是否已安装 rpm -qa | grep imap 以下为未安装的情形: 检查是否已安装sendmail: rpm -qa | grep sendmail 以下为已安装的返回:

  9. Mac下查看已安装的jdk版本及其安装目录

    1.打开终端,输入:/usr/libexec/java_home -V 注意:输入命令参数区分大小写(-v是不对的,必须是-V) 2.如图:为输入命令: 当前Mac已安装jdk目录: Mac默认使用的 ...

随机推荐

  1. alias别名使用

    rhel系列的别名使用,方便操作! 功能说明:设置指令的别名.语 法:alias   [别名]  =  [指令名称]参 数 :若不加任何参数,则列出目前所有的别名设置.举    例 :ermao@lo ...

  2. PLSQL Developer启动失败

    原因:和打印服务冲突 禁掉打印服务,不过打印功能是不行了

  3. IBatis.Net 视频教程 原创教程

    IBatis.Net 视频教程 列文件:共21个 Ibatis.Net 第01课 了解 和下载.avi Ibatis.Net 第02课 搭建简单三层项目 引入Ibatis.avi ibatis.net ...

  4. PHP-Windows下搭建PHP-MSF环境【原创】

    环境: Windows7 64位 php-7.0.19 php-swoole-1.9.15 php-yac-2.0.2 php-redis-3.1.2 php-mongodb-1.2.10 遇坑: C ...

  5. centos7用xshell可以连接, xftp连接失败!(墙裂推荐)

    环境: vultr vps搭建的是centos7  毛病: xshell可以连接, 打开xftp配置好连接却连接失败如下图: 然后开始设置ssh的配置文件vim /etc/ssh/sshd_confi ...

  6. java2小结(草稿)

    Struts2 Servlet 小的Java程序,运行在服务器端,接收和响应从客户端发送过来的请求 流程分析: Servlet生命周期? Servlet配置自动加载?(理解) 1.服务器在启动的时候, ...

  7. springmvc是如何和前端页面联系起来的

    springmvc的使用,在controller中通过注解的形式,获取从前端jsp页面传过来的action参数. 方法/步骤   使用springmvc必须在web.xml中配置(Dispatcher ...

  8. 你想要的iOS 小技巧总结

    UITableView的Group样式下顶部空白处理 //分组列表头部空白处理 UIView *view = [[UIView alloc] initWithFrame:CGRectMake(, , ...

  9. react.js 测试

    <html>    <head>        <title>hellow</title>        <script src="ht ...

  10. 指尖下的js ——多触式web前端开发之二:处理简单手势(转)

    这篇文章将描述多触式网页开发中对手势(Gesture)事件的处理.     水果设备中的Gesture,广义的说包括手指点击(click),轻拂(flick),双击(double-click),两只手 ...