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

Uploaded Source

File details

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

File metadata

  • Download URL: python3_rpm-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 7327c9d6b3cbfab12f19f076b7bc7b0dae512bf186501aabf470976ae10c1fe4
MD5 9f3dfb9f768cc6a45a446956c858f16c
BLAKE2b-256 3f9e094b9e90dc6f3cc4cdbd82b50be38afe2093778b34314c4d63b7d63001d3

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