used to analyse rpm info
Project description
python3-rpm
安装
pip3 install python3-rpm
设置变量
修改 env.sh 中变量的值,然后执行如下命令使变量生效
source env.sh
用法
rpm_ai 命令用法
- 获取指定软件包的所有服务
rpm_ai rpm get_service httpd
- 获取指定软件包的命令参数列表
rpm_ai rpm get_cmd_and_param acl
rpm 库用法
获取软件包提供的服务列表
from rpm.rpm import RpmService
rpm=RpmService()
service_list=rpm.get_service("mysql-server")
print(service_list)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python3_rpm-0.0.6.tar.gz
(4.3 kB
view details)
File details
Details for the file python3_rpm-0.0.6.tar.gz
.
File metadata
- Download URL: python3_rpm-0.0.6.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 346ba150e59b4a77bf76917a0aff769d1f496d924f15718f96671172d2104172 |
|
MD5 | 2fc5386ea0da4bc2374309ced3202b28 |
|
BLAKE2b-256 | d716f8baff1ed5c7a5276bcb7f33740a2e5f97567a50660706ae92a2578069ea |