如何搜索已安装的repostiries,使用yum
python API添加和删除它们(在fedora 17下).
我搜索了很多网站,我发现了如何管理包(比如这里: http://phacker.org/2008/06/20/yum-python-api/),但我还没有找到任何地方如何处理存储库).
我搜索了很多网站,我发现了如何管理包(比如这里: http://phacker.org/2008/06/20/yum-python-api/),但我还没有找到任何地方如何处理存储库).
我希望例如能够使用python yum API获得与以下相同的结果:
yum repolist yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm`
(最后一个是与yum-config-manager –add-repo相同; yum-config-manager –enable)
等等
你可以使用
eulfedora
原文链接:https://www.f2er.com/bash/384845.htmleulfedora.api provides complete access to the Fedora API,primarily making use of Fedora’s REST API. This low-level interface is wrapped by eulfedora.server.Repository and eulfedora.models.DigitalObject,which provide a more abstract,object-oriented,and Pythonic way of interacting with a Fedora Repository or with individual objects and datastreams.