{"id":13418,"date":"2023-12-25T15:43:56","date_gmt":"2023-12-25T07:43:56","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=13418"},"modified":"2023-12-25T15:43:56","modified_gmt":"2023-12-25T07:43:56","slug":"ubuntu%e5%ae%89%e8%a3%85rpm%e5%91%bd%e4%bb%a4%e5%8c%85%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/13418\/","title":{"rendered":"ubuntu\u5b89\u88c5rpm\u547d\u4ee4\u5305\u4ecb\u7ecd"},"content":{"rendered":"

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5e38\u89c1\u7684\u8f6f\u4ef6\u5305\u683c\u5f0f\u6709rpm\u548cdeb\u4e24\u79cd\u3002rpm\u662fRed Hat Package Manager\u7684\u7f29\u5199\uff0c\u662f\u4e00\u79cd\u5e38\u7528\u4e8eRed Hat\u7cfb\u5217Linux\u53d1\u884c\u7248\u7684\u8f6f\u4ef6\u5305\u683c\u5f0f\u3002\u5728\u5176\u4ed6Linux\u53d1\u884c\u7248\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u5b89\u88c5.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5728Ubuntu\u7cfb\u7edf\u4e2d\u5982\u4f55\u5b89\u88c5.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n

Ubuntu\u7cfb\u7edf\u9ed8\u8ba4\u4f7f\u7528\u7684\u662f.deb\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\uff0c\u56e0\u6b64\u5728\u5b89\u88c5.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5\u4e00\u4e2a\u540d\u4e3a\u201calien\u201d\u7684\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u8f6c\u6362\u6210Ubuntu\u7cfb\u7edf\u53ef\u4ee5\u8bc6\u522b\u7684.deb\u683c\u5f0f\u3002<\/p>\n

\u9996\u5148\u9700\u8981\u5b89\u88c5alien\u5de5\u5177\uff1a<\/p>\n

“`<\/p>\n

sudo apt-get install alien<\/p>\n

“`<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u8f6c\u6362\u6210.deb\u683c\u5f0f\uff1a<\/p>\n

“`<\/p>\n

sudo alien -d package.rpm<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0cpackage.rpm\u662f\u8981\u8f6c\u6362\u7684.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u7684\u6587\u4ef6\u540d\u3002-d\u9009\u9879\u8868\u793a\u5c06.rpm\u683c\u5f0f\u8f6c\u6362\u6210.deb\u683c\u5f0f\u3002<\/p>\n

\u8f6c\u6362\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5728Ubuntu\u7cfb\u7edf\u4e2d\u5b89\u88c5\u8f6c\u6362\u540e\u7684.deb\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\uff1a<\/p>\n

“`ruby\u6253\u5305exe<\/a><\/p>\n

sudo dpkg -i package.deb<\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0cpackage.deb\u662f\u8f6c\u6362\u540e\u7684.deb\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u7684\u6587\u4ef6\u540d\u3002<\/p>\n

\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6709\u4e9b.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u4f9d\u8d56\u4e8eRed Hat\u7cfb\u5217Linux\u53d1\u884c\u7248\u7279\u6709\u7684\u5e93\u6587\u4ef6\uff0c\u8fd9\u4e9b\u5e93\u6587\u4ef6\u5728Ubuntu\u7cfb\u7edf\u8f6f\u4ef6\u5982\u4f55\u5c01\u88c5<\/a>\u4e2d\u53ef\u80fd\u4e0d\u5b58\u5728\u6216\u7248\u672c\u4e0d\u5339\u914d\u3002\u56e0\u6b64\uff0c\u5728\u5b89\u88c5.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u524d\uff0c\u9700\u8981\u5148\u786e\u8ba4\u5176\u662f\u5426\u53ef\u4ee5\u5728Ubuntu\u7cfb\u7edf\u4e2d\u8fd0\u884c\u3002\u5982\u679c<\/p>\n

<\/figure>\n<\/p>\n

\u786e\u5b9a\u53ef\u4ee5\u8fd0\u884c\uff0c\u5219\u9700\u8981\u624b\u52a8\u5b89\u88c5\u6240\u9700\u7684\u5e93\u6587\u4ef6\u3002<\/p>\n

\u603b\u4e4b\uff0c\u901a\u8fc7\u4f7f\u7528alien\u5de5\u5177\u5c06.rpm\u683c\u5f0f\u7684\u8f6f\u4ef6\u5305\u8f6c\u6362\u6210.deb\u683c\u5f0f\uff0c\u518d\u4f7f\u7528dpkg\u547d\u4ee4\u5728Ubuntu\u7cfb\u7edf\u4e2d\u5b89\u88c5\uff0c\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u89e3\u51b3.rpm\u683c\u5f0f\u8f6f\u4ef6\u5305\u5728Ubuntu\u7cfb\u7edf\u4e2d\u65e0\u6cd5\u76f4\u63a5\u5b89\u88c5\u7684\u95ee\u9898\u3002\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8f6c\u6362\u540e\u7684.deb\u683c\u5f0f\u8f6f\u4ef6\u5305\u5728\u5b89\u88c5\u548c\u8fd0\u884c\u65f6\u53ef\u80fd\u5b58\u5728\u4e0d\u517c\u5bb9\u7684\u95ee\u9898\uff0c\u56e0\u6b64\u9700\u8981\u8c28\u614e\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5e38\u89c1\u7684\u8f6f\u4ef6\u5305\u683c\u5f0f\u6709rpm\u548cdeb\u4e24\u79cd\u3002rpm\u662fRed Hat Package Manager\u7684\u7f29\u5199\uff0c\u662f\u4e00\u79cd\u5e38\u7528\u4e8eRed Hat\u7cfb\u5217Linux\u53d1\u884c\u7248\u7684\u8f6f\u4ef6\u5305\u683c\u5f0f\u3002\u5728\u5176\u4ed6Linux\u53d1<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[12611,5719,298,294,416],"topic":[],"class_list":{"0":"post-13418","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-exekf","7":"tag-exe","9":"tag-298","10":"tag-294","11":"tag-416"},"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/13418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=13418"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/13418\/revisions"}],"predecessor-version":[{"id":13488,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/13418\/revisions\/13488"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=13418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=13418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=13418"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=13418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}