{"id":766,"date":"2010-05-24T05:44:47","date_gmt":"2010-05-23T22:44:47","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=766"},"modified":"2010-05-24T05:44:47","modified_gmt":"2010-05-23T22:44:47","slug":"smart-query-package","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=766","title":{"rendered":"smart query package"},"content":{"rendered":"<p><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/05\/smartpm.png\" rel=\"lightbox[766]\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-full wp-image-882\" title=\"smartpm\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/05\/smartpm.png\" alt=\"\" width=\"250\" height=\"75\" \/><\/a>Sometimes you need to know what package that contains certain package during rpmbuild. Here is some smart query to achieve that :<\/p>\n<p>{code}<br \/>\n[root@localhost jfdesign]# smart query &#8211;provides=sgml-tools<br \/>\nLoading cache&#8230;<br \/>\nUpdating cache&#8230; ###################################################### [100%]<\/p>\n<p>docbook-utils-0.6.14-6klixs2010@noarch<br \/>\nProvides:<br \/>\nsgml-tools<br \/>\nlinuxdoc-tools-0.9.21-6klixs2010@i586<br \/>\nProvides:<br \/>\nsgml-tools<\/p>\n<p>Saving cache&#8230;<\/p>\n<p>[root@localhost jfdesign]#<br \/>\n{\/code}<\/p>\n<p>or this :<\/p>\n<p>{code}<br \/>\n[root@localhost jfdesign]# smart query &#8211;provides=perl-MDK-Common-devel<br \/>\nLoading cache&#8230;<br \/>\nUpdating cache&#8230;\u00a0###################################################### [100%]<\/p>\n<p>perl_checker-1.2.11-10klixs2010@i586<br \/>\nProvides:<br \/>\nperl-MDK-Common-devel = 1.1.24<\/p>\n<p>Saving cache&#8230;<\/p>\n<p>[root@localhost jfdesign]#<br \/>\n{\/code}<\/p>\n<p>Smart query is very powerful !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you need to know what package that contains certain package during rpmbuild. Here is some smart query to achieve that : {code} [root@localhost jfdesign]# smart query &#8211;provides=sgml-tools Loading cache&#8230; Updating cache&#8230; ###################################################### [100%] docbook-utils-0.6.14-6klixs2010@noarch Provides: sgml-tools linuxdoc-tools-0.9.21-6klixs2010@i586 Provides: sgml-tools Saving cache&#8230; [root@localhost jfdesign]# {\/code} or this : {code} [root@localhost jfdesign]# smart query &#8211;provides=perl-MDK-Common-devel Loading [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":882,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,9],"tags":[220],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/766"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=766"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/882"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}