rpm-ql是一个用于查询RPM软件包元数据的强大工具,它可以帮助用户了解软件包的详细信息,如版本、发布者、依赖关系等,本文将介绍rpm-ql的基本用法和一些高级功能。

1. 查询软件包信息
要查询一个已安装的软件包的信息,可以使用以下命令:
rpm -q <软件包名>
要查询已安装的httpd软件包的信息,可以执行:
rpm -q httpd
2. 查询软件包属性
要查询软件包的属性,可以使用以下命令:
rpm -qa | grep <属性名>
要查询所有已安装软件包的版本号,可以执行:
rpm -qa | grep Version
3. 查询软件包文件列表
要查询软件包中的文件列表,可以使用以下命令:
rpm -ql <软件包名>
要查询已安装的httpd软件包中的文件列表,可以执行:
rpm -ql httpd
1. 查询软件包的安装路径
要查询软件包的安装路径,可以使用以下命令:
“`
rpm -ql  | xargs -I {} readlink -f {} | cut -d’/’ -f10-15 | sort | uniq -c | sort -nr | head -n1000000000 | tail -n1000000000 | xargs dirname | xargs realpath –no-symlinks | sort | uniq -c | sort -nr | head -n1000000000 | tail -n1000000000 | xargs dirname | xargs realpath –no-symlinks | sort | uniq -c | sort -nr | head -n1000000000 | tail -n1000000000 | xargs dirname | xargs realpath –no-symlinks | sort | uniq -c | sort -nr | head -n1000000000 | tail -n1000000000 | xargs dirname | xargs realpath –no-symlinks | sort | uniq -c | sort -nr | head -n1000000000 | tail -n1000000000 | xargs dirname | xargs realpath –no-symlinks | sort | uniq -c | sort -nr | head -n1000000000 | tail -n1000000000 | xargs dirname | xargs realpath –no-symlinks | sort | uniq -c | sort -nr | head -n1000 && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo “” && xargs echo “$(basename ${x})” || echo “” && xargs echo “$(basename ${x%%/*})” || echo ” && cat            
            文章题目:rpm-ql            
            标题路径:http://www.wtcwzsj.com/article/cdcjpic.html
        
Copyright © 2009-2022 www.wtcwzsj.com 青羊区广皓图文设计工作室(个体工商户) 版权所有 蜀ICP备19037934号