linux rpm 查看已安装包的详细信息和安装文件
【摘要】 ECS信息规格:2vCPUs | 4GiB | kc1.large.2镜像:openEuler 20.03 64bit with ARM | 公共镜像 linux rpm 查看已安装包的详细信息和安装文件 rpm --query --all 查询已安装的所有软件包# rpm --query --allsg3_utils-1.42-10.oe1.aarch64perl-autodie-2....
ECS信息
- 规格:2vCPUs | 4GiB | kc1.large.2
- 镜像:openEuler 20.03 64bit with ARM | 公共镜像
linux rpm 查看已安装包的详细信息和安装文件
rpm --query --all 查询已安装的所有软件包
# rpm --query --all
sg3_utils-1.42-10.oe1.aarch64
perl-autodie-2.29-398.oe1.noarch
ncurses-base-6.1-14.oe1.noarch
langpacks-en-1.0-16.oe1.noarch
perl-Filter-Simple-0.94-1.oe1.noarch
xkeyboard-config-2.24-6.oe1.noarch
......(部分截取)
rpm --query --info 查看已安装软件包的详细信息
# rpm --query --info python3-libselinux-2.9-1.oe1.aarch64
Name : python3-libselinux
Version : 2.9
Release : 1.oe1
Architecture: aarch64
Install Date: Mon 18 May 2020 10:35:40 AM CST
Group : Unspecified
Size : 663770
License : Public Domain
Signature : RSA/SHA1, Tue 24 Mar 2020 03:13:39 AM CST, Key ID d557065eb25e7f66
Source RPM : libselinux-2.9-1.oe1.src.rpm
Build Date : Tue 24 Mar 2020 03:10:48 AM CST
Build Host : obs-worker-004
Packager : http://openeuler.org
Vendor : http://openeuler.org
URL : https://github.com/SELinuxProject/selinux/wiki
Summary : SELinux python3 bindings for libselinux
Description :
The libselinux-python3 package contains the python bindings for developing
SELinux applications.
rpm --query --list 查询已安装的软件包的相关文件的安装路径
# rpm --query --list python3-libselinux-2.9-1.oe1.aarch64
/usr/lib64/python3.7/site-packages/_selinux.cpython-37m-aarch64-linux-gnu.so
/usr/lib64/python3.7/site-packages/selinux
/usr/lib64/python3.7/site-packages/selinux/__init__.py
/usr/lib64/python3.7/site-packages/selinux/__pycache__
/usr/lib64/python3.7/site-packages/selinux/__pycache__/__init__.cpython-37.opt-1.pyc
/usr/lib64/python3.7/site-packages/selinux/__pycache__/__init__.cpython-37.pyc
/usr/lib64/python3.7/site-packages/selinux/audit2why.cpython-37m-aarch64-linux-gnu.so
rpm --query --file 根据文件查询其所属软件包
# rpm --query --file /usr/lib64/python3.7/site-packages/selinux/__init__.py
python3-libselinux-2.9-1.oe1.aarch64
帮助文档(部分)
# 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:
......
学习资料
欢迎各位同学一起来交流学习心得^_^
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)