kaywang 发表于 2019-2-18 09:56:12

Linux RPM查询

http://s1.运维网.com/images/20180315/1521127815284665.png
  -a 查询所有已安装的程序包
http://s1.运维网.com/images/20180315/1521127852961253.png
  -f 查看指定文件是由哪个程序产生的
http://s1.运维网.com/images/20180315/1521127896729166.png
  -p 查看指定程序包,安装后会产生哪些文件
http://s1.运维网.com/images/20180315/1521129114956017.png
  通过功能查询程序包
  --whatprovides CAPABILITY

http://s1.运维网.com/images/20180315/1521129284653473.png
  --whatrequires CAPABILITY
  指定的功能被哪些程序包依赖
http://s1.运维网.com/images/20180315/1521129347933469.png
  --changelog 查询RPM包的changelog
http://s1.运维网.com/images/20180316/1521129754186276.png
  changelog类似于升级说明
  -i 程序包相关的信息、版本号、大小、所属的包组
http://s1.运维网.com/images/20180316/1521129862460009.png
  主版本号,发行号,运行的平台,安装日期都有
  -c 查询指定程序提供的配置文件
http://s1.运维网.com/images/20180316/1521129922743279.png
  针对zsh的配置文件
  -d 查询指定程序包提供的文档
http://s1.运维网.com/images/20180316/1521129970455764.png
  --provides 列出指定程序包可以提供的功能
http://s1.运维网.com/images/20180316/1521130289766629.png
  --scripts 查询指定程序包在安装和卸载时的脚本
http://s1.运维网.com/images/20180316/1521130414813091.png
  安装前的脚本 卸载前的脚本 卸载后的脚本
  校验已安装的程序
http://s1.运维网.com/images/20180316/1521130498255642.png
  没有消息就是好消息,zsh安装后没有被修改过
http://s1.运维网.com/images/20180316/1521130527354479.png
  如果有文件被修改 根据这些标识可以判断哪些内容被修改过
  我修改了zsh产生文件中的一些内容
http://s1.运维网.com/images/20180316/1521130660205159.png
  说明这个文件被修改了,S文件大小改变了 MD5值变了T mtime变了。




页: [1]
查看完整版本: Linux RPM查询