Skip to main content

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


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.5.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file python3_rpm-0.0.5.tar.gz.

File metadata

  • Download URL: python3_rpm-0.0.5.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

Hashes for python3_rpm-0.0.5.tar.gz
Algorithm Hash digest
SHA256 88835f88e6565a7331e4deff6686eb8139e90cac44e6128c8546ae854f85a94a
MD5 6be4c97f66c8dd2dd2dd02f4e536d03d
BLAKE2b-256 7d2827ea2bc6a89b7205c148f7bb10474e1b759c71e93c9958ed46455b33c0b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page