rpm 校验软件包完整性

RPM LINUX

Posted by gomyck on August 3, 2022

rpm -Va

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
S.5....T.  c  /etc/hosts.deny
S.5....T.  c  /etc/profile
missing       /var/run/wpa_supplicant
missing       /var/log/ntpstats
....L....  c  /etc/pam.d/fingerprint-auth
....L....  c  /etc/pam.d/password-auth
....L....  c  /etc/pam.d/postlogin
....L....  c  /etc/pam.d/smartcard-auth
S.5....T.  c  /etc/pam.d/system-auth
S.5....T.  c  /etc/security/limits.conf
S.5....T.  c  /etc/logrotate.conf
.......T.  c  /etc/sysconfig/shellinaboxd
S.5....T.  c  /etc/infiniband/openib.conf
S.5....T.     /etc/udev/rules.d/90-ib.rules
.......T.     /etc/udev/rules.d/10-knem.rules

c 代表 changed 文件已被更改

1
2
3
4
5
6
7
8
9
说明:
S 表示文件长度发生了变化
M 表示文件的访问权限或文件类型发生了变化
5 表示MD5校验和发生了变化
D 表示设备节点的属性发生了变化
L 表示文件的符号链接发生了变化
U 表示文件/子目录/ 设备节点的owner 发生了变化
G 表示文件/子目录/ 设备节点的group 发生了变化
T 表示文件最后一次的修改时间是发生了变化