How to list the contents of a package using YUM?

后端 未结 7 703
野趣味
野趣味 2020-12-07 06:55

I know how to use rpm to list the contents of a package (rpm -qpil package.rpm). However, this requires knowing the location of the .rpm file on the filesystem.

7条回答
  •  生来不讨喜
    2020-12-07 07:21

    currently reopquery is integrated into dnf and yum, so typing:

    dnf repoquery -l 
    

    will list package contents from a remote repository (even for the packages that are not installed yet)

    meaning installing a separate dnf-utils or yum-utils package is no longer required for the functionality as it is now being supported natively.


    for listing installed or local (*.rpm files) packages' contents there is rpm -ql

    i don't think it is possible with yum org dnf (not repoquery subcommand)

    please correct me if i am wrong

提交回复
热议问题