Class RpmQuery

java.lang.Object
io.kojan.javadeptools.rpm.RpmQuery

public class RpmQuery extends Object
List installed RPM packages by given criteria.
Author:
Mikolaj Izdebski
  • Method Details

    • byFile

      public static List<RpmInfo> byFile(Path path)
      List RPM packages installed in the system that provide given file.
      Parameters:
      path - provided file to query packages
      Returns:
      list of packages that provide given file
    • byFile

      public static List<RpmInfo> byFile(Path path, Path root)
      List RPM packages installed in a chroot that provide given file.
      Parameters:
      path - provided file to query packages
      root - path to chroot in which packages are installed
      Returns:
      list of packages that provide given file