Displaying information on non-installed RPM package?

后端 未结 7 1469
广开言路
广开言路 2021-01-30 19:40

I googled for this, but couldn\'t find how to query a non-installed RPM file for its information:

# rpm -qa blackfin-jtag-tools-09r1.1-2.i386.rpm
# 
# rpm -qi bl         


        
相关标签:
7条回答
  • 2021-01-30 20:16

    Use rpm -qip:

    rpm -qip package_path1 [package_path2 ...]
    
    • -q - query the package
    • -p - get the package name from arguments

    It shows the following info:

    Name
    Version
    Release
    Architecture
    Install Date
    Group
    Size
    License
    Signature
    Source RPM
    Build Date
    Build Host
    Relocations
    Packager
    Vendor
    URL
    Summary
    Description
    

    The man page doesn't talk about the -i option in -q context. However, rpm -qp file doesn't produce the right output.

    0 讨论(0)
提交回复
热议问题