linux rpm 查看包的帮助文档、配置文件和依赖条件

网友投稿 964 2022-05-29

ECS信息

规格:2vCPUs | 4GiB | kc1.large.2

镜像:openEuler 20.03 64bit with ARM | 公共镜像

linux rpm 查看包的帮助文档、配置文件和依赖条件

# rpm -qa |grep ssh openssh-7.8p1-8.oe1.aarch64 libssh-0.8.3-7.oe1.aarch64 # rpm --query --configfiles openssh-7.8p1-8.oe1.aarch64 /etc/pam.d/ssh-keycat /etc/pam.d/sshd /etc/ssh/moduli /etc/ssh/ssh_config /etc/ssh/ssh_config.d/05-redhat.conf /etc/ssh/sshd_config /etc/sysconfig/sshd

# rpm --query --docfiles openssh-7.8p1-8.oe1.aarch64 /usr/share/doc/openssh/CREDITS /usr/share/doc/openssh/INSTALL /usr/share/doc/openssh/README.platform

rpm --query --requires 查看依赖条件

# rpm --query --requires openssh-7.8p1-8.oe1.aarch64 /bin/bash /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /sbin/nologin /usr/bin/env audit-libs >= 1.0.8 config(openssh) = 7.8p1-8.oe1 crypto-policies >= 20180306-1 fipscheck-lib >= 1.3.0 ld-linux-aarch64.so.1()(64bit) ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) libX11.so.6()(64bit) libatk-1.0.so.0()(64bit) libaudit.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.25)(64bit) libc.so.6(GLIBC_2.26)(64bit) libcairo.so.2()(64bit) libcom_err.so.2()(64bit) libcrypt.so.1()(64bit) libcrypt.so.1(XCRYPT_2.0)(64bit) libcrypto.so.1.1()(64bit) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.17)(64bit) libedit.so.0()(64bit) libfipscheck.so.1()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libgdk-x11-2.0.so.0()(64bit) libgdk_pixbuf-2.0.so.0()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgssapi_krb5.so.2()(64bit) libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) libgtk-x11-2.0.so.0()(64bit) libk5crypto.so.3()(64bit) libkrb5.so.3()(64bit) libkrb5.so.3(krb5_3_MIT)(64bit) liblber-2.4.so.2()(64bit) libldap-2.4.so.2()(64bit) libpam.so.0()(64bit) libpam.so.0(LIBPAM_1.0)(64bit) libpango-1.0.so.0()(64bit) libpangocairo-1.0.so.0()(64bit) libpangoft2-1.0.so.0()(64bit) libpthread.so.0()(64bit) libresolv.so.2()(64bit) libresolv.so.2(GLIBC_2.17)(64bit) libselinux >= 2.3-5 libselinux.so.1()(64bit) libsystemd.so.0()(64bit) libsystemd.so.0(LIBSYSTEMD_209)(64bit) libutil.so.1()(64bit) libutil.so.1(GLIBC_2.17)(64bit) libz.so.1()(64bit) pam >= 1.0.1-3 perl(IPC::Open2) perl(strict) perl(warnings) rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 rtld(GNU_HASH) shadow shadow-utils systemd systemd systemd

帮助文档(部分)

# rpm -? Usage: rpm [OPTION...] Query/Verify package selection options: -a, --all query/verify all packages -f, --file query/verify package(s) owning file -g, --group query/verify package(s) in group -p, --package query/verify a package file --pkgid query/verify package(s) with package identifier --hdrid query/verify package(s) with header identifier --triggeredby query the package(s) triggered by the package --whatconflicts query/verify the package(s) which require a dependency --whatrequires query/verify the package(s) which require a dependency --whatobsoletes query/verify the package(s) which obsolete a dependency --whatprovides query/verify the package(s) which provide a dependency --whatrecommends query/verify the package(s) which recommends a dependency --whatsuggests query/verify the package(s) which suggests a dependency --whatsupplements query/verify the package(s) which supplements a dependency --whatenhances query/verify the package(s) which enhances a dependency --nomanifest do not process non-package files as manifests Query/Verify file selection options: ......

学习资料

linux rpm 查看包的帮助文档、配置文件和依赖条件

弹性云服务器 ECS

openEuler-官网

openEuler-B站

openEuler-慕课

openEuler-文档

鲲鹏社区

欢迎各位同学一起来交流学习心得^_^

Linux openEuler

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:【分享】Linux下安装好用的接口测试与文档生成工具
下一篇:一站式接口文档及测试工具yapi介绍
相关文章