rpmverify命令用来验证已安装的rpm软件包的正确性
-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
rpmverify命令用来验证已安装的rpm软件包的正确性的更多相关文章
- Ubuntu系统下命令行查看自己已安装的桌面环境问题
原因:有时我们进行远程连接时需要知道我们的Ubuntu系统已安装的桌面环境,这时我们可以使用[dpkg]命令. [dpkg]:dpkg命令是Debian Linux系统用来安装.创建和管理软件包的实用 ...
- CentOS6使用第三方yum源安装更多rpm软件包
引言: CentOS自带的yum源中rpm包数量有限,很多时候找不到我们需的软件包,(例如:要安装网络连接查看软件iftop,默认设置下无法使用yum命令安装),下面教大家在CentOS ...
- 安装zsh后出现命令行无法识别已安装的node
安装zsh之后,在命令行输入 node -v,会出现 command not found: node. 出现原因是:使用bash输入终端指令识别得是~/.bash_profile,而安装zsh则无法识 ...
- SLES 12 SP2 安装src.rpm软件包
系统型号: SUSE Enterprise mv systemd-228-117.12.src.rpm systemd cd systemd 执行下面的命令解压: rpm2c ...
- linux光盘使用、rpm软件包、yum软件仓库安装使用
转至:https://blog.51cto.com/zpeng/1532520 一.光盘文件使用 1,RHEL5(x86_64)光盘结构 Cluster //集群二进制包 C ...
- Linux查看系统信息的一些命令及查看已安装软件包的命令
转自:http://cheneyph.iteye.com/blog/824746 系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看 ...
- (十)Linux查看系统信息的一些命令及查看已安装软件包的命令
转自:http://cheneyph.iteye.com/blog/824746 系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看 ...
- linux常用命令(查看某些软件是否已安装)
查看imap是否已安装 rpm -qa | grep imap 以下为未安装的情形: 检查是否已安装sendmail: rpm -qa | grep sendmail 以下为已安装的返回:
- Mac下查看已安装的jdk版本及其安装目录
1.打开终端,输入:/usr/libexec/java_home -V 注意:输入命令参数区分大小写(-v是不对的,必须是-V) 2.如图:为输入命令: 当前Mac已安装jdk目录: Mac默认使用的 ...
随机推荐
- 如何查看2to3.PY的帮助文档
# -*- coding: utf-8 -*- #python 27 #xiaodeng #如何查看2to3.PY的帮助文档 #http://tieba.baidu.com/p/3939904893 ...
- ISO七层协议
1 OSI参考模型 谈到网络不能不谈OSI参考模型,虽然OSI参考模型的实际应用意义不是很大,但其的确对于理解网络协议内部的运作很有帮助,也为我们学习网络协议提供了一个很好的参考.在现实网络世界里,T ...
- FlipViewDemo
error: Resource entry white is already defined. error: Resource entry transparentBlack is already de ...
- data1是字符串?需要加上引号
07-22 15:55:29.832: E/AndroidRuntime(23914): FATAL EXCEPTION: main 07-22 15:55:29.832: E/AndroidRunt ...
- 【laravel5.*】详解laravel中的依赖注入
1.下面这个是自定义的类,钉钉扫码登录web 网页授权OAuth2.0,是一个典型的依赖注入参考示例:
- ubuntu 连接windows远程桌面 &&rdesktop 退出全屏模式
参考:http://www.asgone.net/ubuntu-connect-windows-remote-desktop/ 呵呵,使用上了ubuntu,怎么接连上我的服务器的远程桌面呢,找了找帮助 ...
- 【jsp】详解JSP表达式语言(EL)
一.JSP EL语言定义 E L(Expression Language) 目的:为了使JSP写起来更加简单. 表达式语言的灵感来自于 ECMAScript 和 XPath 表达式语言,它提供了在 ...
- solrj索引操作
添加索引 Solr添加文档至索引: http://www.cnblogs.com/dennisit/p/3621717.html 删除索引: 每天索引记录有一个唯一标识,索引的删除通过唯一标识操作,如 ...
- Jquery 选择器 详解 js 判断字符串是否包含另外一个字符串
Jquery 选择器 详解 在线文档地址:http://tool.oschina.net/apidocs/apidoc?api=jquery 各种在线工具地址:http://www.ostools ...
- AndroidStudio编译错误:Error: null value in entry: blameLogFolder=null
今天写项目的时候,电脑开了个WiFi热点,然后这个热点和window驱动不兼容,有时候会导致电脑重启,重启之后AndroidStudio编译就报错了, Error: null value in ent ...