{"id":6305,"date":"2020-01-19T19:39:13","date_gmt":"2020-01-19T11:39:13","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6305"},"modified":"2020-01-21T16:28:35","modified_gmt":"2020-01-21T08:28:35","slug":"dnf","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/dnf","title":{"rendered":"dnf\u547d\u4ee4 – \u65b0\u4e00\u4ee3\u7684RPM\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668"},"content":{"rendered":"\n
dnf\u662f\u65b0\u4e00\u4ee3\u7684rpm\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u3002\u9996\u6b21\u51fa\u73b0\u5728 Fedora 18 \u8fd9\u4e2a\u53d1\u884c\u7248\u4e2d\u3002\u800c\u6700\u8fd1\uff0c\u5b83\u53d6\u4ee3\u4e86yum\uff0c\u6b63\u5f0f\u6210\u4e3a Fedora 22 \u7684\u5305\u7ba1\u7406\u5668\u3002<\/p>\n\n\n\n
dnf\u5305\u7ba1\u7406\u5668\u514b\u670d\u4e86yum\u5305\u7ba1\u7406\u5668\u7684\u4e00\u4e9b\u74f6\u9888\uff0c\u63d0\u5347\u4e86\u5305\u62ec\u7528\u6237\u4f53\u9a8c\uff0c\u5185\u5b58\u5360\u7528\uff0c\u4f9d\u8d56\u5206\u6790\uff0c\u8fd0\u884c\u901f\u5ea6\u7b49\u591a\u65b9\u9762\u7684\u5185\u5bb9\u3002dnf\u4f7f\u7528 RPM, libsolv \u548c hawkey \u5e93\u8fdb\u884c\u5305\u7ba1\u7406\u64cd\u4f5c\u3002\u5c3d\u7ba1\u5b83\u6ca1\u6709\u9884\u88c5\u5728 CentOS \u548c RHEL 7 \u4e2d\uff0c\u4f46\u4f60\u53ef\u4ee5\u5728\u4f7f\u7528yum\u7684\u540c\u65f6\u4f7f\u7528dnf \u3002<\/p>\n\n\n\n
\u5f53\u7136dnf\u4e5f\u4e0d\u662f\u5b8c\u7f8e\u7684\uff0c\u4f8b\u5982\uff1a\u5728dnf\u4e2d\u6ca1\u6709 \u2013skip-broken \u547d\u4ee4\uff0c\u5e76\u4e14\u6ca1\u6709\u66ff\u4ee3\u547d\u4ee4\u4f9b\u9009\u62e9\u3002 \u6ca1\u6709\u5224\u65ad\u54ea\u4e2a\u5305\u63d0\u4f9b\u4e86\u6307\u5b9a\u4f9d\u8d56\u7684 resolvedep \u547d\u4ee4\uff0c\u6ca1\u6709\u7528\u6765\u5217\u51fa\u67d0\u4e2a\u8f6f\u4ef6\u4f9d\u8d56\u5305\u7684 deplist \u547d\u4ee4\u7b49\u7b49\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f:<\/strong> dnf [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u56de\u6edaacpid\u8f6f\u4ef6\u5305\u5230\u7279\u5b9a\u7248\u672c\uff1a<\/p>\n\n\n\n \u91cd\u65b0\u5b89\u88c5\u7279\u5b9a\u8f6f\u4ef6\u5305\uff1a<\/p>\n\n\n\n \u67e5\u770b\u6240\u6709\u7684\u8f6f\u4ef6\u5305\u7ec4\uff1a<\/p>\n\n\n\n dnf\u662f\u65b0\u4e00\u4ee3\u7684rpm\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u3002\u9996\u6b21\u51fa\u73b0\u5728 Fedora 18 \u8fd9\u4e2a\u53d1\u884c\u7248\u4e2d\u3002\u800c\u6700\u8fd1\uff0c\u5b83\u53d6\u4ee3\u4e86yum\uff0c\u6b63\u5f0f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6305"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6305"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6305\/revisions"}],"predecessor-version":[{"id":6541,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6305\/revisions\/6541"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}repolist <\/td> \u663e\u793a\u7cfb\u7edf\u4e2d\u53ef\u7528\u7684 DNF \u8f6f\u4ef6\u5e93 <\/td><\/tr> list <\/td> \u5217\u51fa\u7528\u6237\u7cfb\u7edf\u4e0a\u7684\u6240\u6709\u6765\u81ea\u8f6f\u4ef6\u5e93\u7684\u53ef\u7528\u8f6f\u4ef6\u5305\u548c\u6240\u6709\u5df2\u7ecf\u5b89\u88c5\u5728\u7cfb\u7edf\u4e0a\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> search <\u5305\u540d><\/td> \u641c\u7d22\u8f6f\u4ef6\u5e93\u4e2d\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> provides <\u8def\u5f84><\/td> \u67e5\u627e\u67d0\u4e00\u6587\u4ef6\u7684\u63d0\u4f9b\u8005<\/td><\/tr> info <\u5305\u540d> <\/td> \u67e5\u770b\u8f6f\u4ef6\u5305\u8be6\u60c5<\/td><\/tr> install <\u5305\u540d><\/td> \u5b89\u88c5\u8f6f\u4ef6\u5305<\/td><\/tr> update <\u5305\u540d> <\/td> \u5347\u7ea7\u8f6f\u4ef6\u5305<\/td><\/tr> check-update<\/td> \u68c0\u67e5\u7cfb\u7edf\u8f6f\u4ef6\u5305\u7684\u66f4\u65b0<\/td><\/tr> update<\/td> \u5347\u7ea7\u6240\u6709\u7cfb\u7edf\u8f6f\u4ef6\u5305<\/td><\/tr> remove<\/td> \u5220\u9664\u8f6f\u4ef6\u5305<\/td><\/tr> autoremove <\/td> \u5220\u9664\u65e0\u7528\u5b64\u7acb\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> clean all<\/td> \u5220\u9664\u7f13\u5b58\u7684\u65e0\u7528\u8f6f\u4ef6\u5305<\/td><\/tr> help <\u547d\u4ee4\u540d><\/td> \u83b7\u53d6\u6709\u5173\u67d0\u6761\u547d\u4ee4\u7684\u4f7f\u7528\u5e2e\u52a9<\/td><\/tr> help<\/td> \u67e5\u770b\u6240\u6709\u7684dnf\u547d\u4ee4\u53ca\u5176\u7528\u9014<\/td><\/tr> history<\/td> \u67e5\u770bdnf\u547d\u4ee4\u7684\u6267\u884c\u5386\u53f2<\/td><\/tr> grouplist<\/td> \u67e5\u770b\u6240\u6709\u7684\u8f6f\u4ef6\u5305\u7ec4<\/td><\/tr> groupinstall <\u8f6f\u4ef6\u5305\u7ec4\u540d\u79f0><\/td> \u5b89\u88c5\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ec4<\/td><\/tr> groupupdate <\u8f6f\u4ef6\u5305\u7ec4\u540d\u79f0> <\/td> \u5347\u7ea7\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ec4\u4e2d\u7684\u8f6f\u4ef6\u5305<\/td><\/tr> groupremove <\u8f6f\u4ef6\u5305\u7ec4\u540d\u79f0> <\/td> \u5220\u9664\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ec4<\/td><\/tr> distro-sync<\/td> \u66f4\u65b0\u8f6f\u4ef6\u5305\u5230\u6700\u65b0\u7684\u7a33\u5b9a\u53d1\u884c\u7248<\/td><\/tr> reinstall <\u5305\u540d> <\/td> \u91cd\u65b0\u5b89\u88c5\u7279\u5b9a\u8f6f\u4ef6\u5305<\/td><\/tr> downgrade <\u5305\u540d> <\/td> \u56de\u6eda\u67d0\u4e2a\u7279\u5b9a\u8f6f\u4ef6\u7684\u7248\u672c<\/td><\/tr> \u2013version<\/td> \u67e5\u770b DNF \u5305\u7ba1\u7406\u5668\u7248\u672c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# dnf downgrade acpid<\/pre>\n\n\n\n
[root@linuxcool ~]# dnf reinstall nano<\/pre>\n\n\n\n
[root@linuxcool ~]# dnf grouplist<\/pre>\n","protected":false},"excerpt":{"rendered":"