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

Uploaded Source

File details

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

File metadata

  • Download URL: python3_rpm-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 bcb88cad40d718d36047bdabb516fc7c71917b63c864237f0a75007bda2d86ef
MD5 37e2c2f162dafe61b61fa0e1e9988baf
BLAKE2b-256 8c9986cb8a1dd56449f49203287da32221f4c8f35684e1649869672c15cc5bc1

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