{"id":4964,"date":"2019-09-21T21:02:50","date_gmt":"2019-09-21T13:02:50","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4964"},"modified":"2020-05-06T10:10:00","modified_gmt":"2020-05-06T02:10:00","slug":"dpkg-preconfigure","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/dpkg-preconfigure","title":{"rendered":"dpkg-preconfigure\u547d\u4ee4 – \u8f6f\u4ef6\u5305\u5b89\u88c5\u4e4b\u524d\u8be2\u95ee\u95ee\u9898"},"content":{"rendered":"\n

dpkg-preconfigure\u547d\u4ee4\u7528\u4e8e\u5728Debian linux\u4e2d\u8f6f\u4ef6\u5305\u5b89\u88c5\u4e4b\u524d\u8be2\u95ee\u95ee\u9898\u3002\u5982\u679c\u8f6f\u4ef6\u5305\u4e0d\u9700\u8981\u8fdb\u884c\u914d\u7f6e\uff0c\u5219\u4e0d\u4f1a\u8be2\u95ee\u4efb\u4f55\u95ee\u9898\u3002<\/p>\n\n\n\n

\u5728\u975e\u4ea4\u4e92\u5f0f\u73af\u5883\u4e0b\u5b89\u88c5\u652f\u6301debconf\u7684\u8f6f\u4ef6\u65f6\uff0c\u7528\u6237\u65e0\u6cd5\u5728\u7ebf\u63d0\u4f9b\u8f6f\u4ef6\u7684\u914d\u7f6e\u9879\u3002\u56e0\u6b64\u7528\u6237\u9700\u8981\u901a\u8fc7dpkg-preconfigure\u547d\u4ee4\u9884\u5148\u6307\u5b9a\u8f6f\u4ef6\u914d\u7f6e\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> dpkg-preconfigure [\u53c2\u6570] [\u8f6f\u4ef6\u5305]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-f<\/td>\u9009\u62e9\u4f7f\u7528\u7684\u524d\u7aef<\/td><\/tr>
-p<\/td>\u611f\u5174\u8da3\u7684\u6700\u4f4e\u7684\u4f18\u5148\u7ea7\u95ee\u9898<\/td><\/tr>
-- -apt<\/td>\u5728apt\u6a21\u5f0f\u4e0b\u8fd0\u884c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5bfc\u5165debconf\u6a21\u677f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dpkg-preconfigure \/var\/cache\/apt\/archives\/mysql-server-5.5*.deb<\/pre>\n\n\n\n

\u5b89\u88c5\u524d\u8be2\u95ee\u95ee\u9898\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dpkg-preconfigure mysql-server-5.5*.deb<\/pre>\n\n\n\n

\u5728apt\u6a21\u5f0f\u4e0b\u8fd0\u884c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# dpkg-preconfigure - -apt<\/pre>\n","protected":false},"excerpt":{"rendered":"

dpkg-preconfigure\u547d\u4ee4\u7528\u4e8e\u5728Debian linux\u4e2d\u8f6f\u4ef6\u5305\u5b89\u88c5\u4e4b\u524d\u8be2\u95ee\u95ee\u9898\u3002\u5982\u679c\u8f6f\u4ef6\u5305\u4e0d\u9700\u8981 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4964"}],"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=4964"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4964\/revisions"}],"predecessor-version":[{"id":7518,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4964\/revisions\/7518"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}