{"id":95093,"date":"2022-02-20T08:49:27","date_gmt":"2022-02-19T23:49:27","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=95093"},"modified":"2022-02-20T08:49:27","modified_gmt":"2022-02-19T23:49:27","slug":"macports-uninstall-operation-not-permitted","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/macports-uninstall-operation-not-permitted\/","title":{"rendered":"\u3010Tips\u3011MacPorts\u5b8c\u5168\u524a\u9664\u6642\u306b\u300cOperation not permitted\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306b\u78ba\u8a8d\u3057\u305f\u3044\u4e8b"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/02\/operation_not_permitted.jpg\" alt=\"Operation not permitted\" title=\"operation_not_permitted.jpg\" border=\"0\" width=\"1280\" height=\"833\" \/><\/p>\n<p>macOS\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3068\u3057\u3066\u306f\u6700\u8fd1\u300cHomebrew\u300d\u304c\u5727\u5012\u7684\u306a\u4eba\u6c17\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u524d\u304b\u3089\u5b58\u5728\u3059\u308b\u300cMacPorts\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u65b9\u3082\u3001\u5927\u52e2\u306b\u9006\u3089\u3048\u305a\u3001\u305d\u308d\u305d\u308dHomebrew\u306b\u79fb\u884c\u3057\u3066\u307f\u3088\u3046\u304b\u3068\u8003\u3048\u3066\u3044\u308b\u65b9\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u56de\u3001\u624b\u5143\u306e\u74b0\u5883\u3067\u3082\u3001MacPorts\u304b\u3089Homebrew\u3078\u79fb\u884c\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u969b\u3001MacPorts\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b\u300c\/opt\/local\u300d\u304c\u524a\u9664\u3067\u304d\u306a\u3044\u554f\u984c\u306b\u906d\u9047\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>root\u6a29\u9650\u3067\u300csudo rm -rf \/opt\/local\u300d\u3068\u5b9f\u884c\u3057\u3066\u3082\u300cOperation not permitted\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u524a\u9664\u3067\u304d\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>macports\u30e6\u30fc\u30b6\u30fc\u3001\u30b0\u30eb\u30fc\u30d7\u3092\u524a\u9664\u3059\u308b\u3053\u3068<\/h2>\n<p>\u7d50\u8ad6\u304b\u3089\u66f8\u304f\u3068\u300c\/opt\/local\u300d\u3092\u524a\u9664\u3059\u308b\u524d\u306b\u3001MacPorts\u304c\u81ea\u52d5\u7684\u306b\u4f5c\u6210\u3059\u308bmacports\u30e6\u30fc\u30b6\u30fc\u3001macports\u30b0\u30eb\u30fc\u30d7\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\n$ sudo dscl . -delete \/Users\/macports\r\n$ sudo dscl . -delete \/Groups\/macports\r\n<\/pre>\n<p>\u3053\u308c\u3067\/opt\/local\u304c\u524a\u9664\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\r\n$ sudo \/bin\/rm -rf \/opt\/local\r\n<\/pre>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/02\/operation_not_permitted_2.jpg\" alt=\"Operation not permitted 2\" title=\"operation_not_permitted_2.jpg\" border=\"0\" width=\"1280\" height=\"833\" \/><\/p>\n<p>\u7d50\u5c40\u3001<a href=\"https:\/\/guide.macports.org\/chunked\/installing.macports.uninstalling.html\">MacPorts<\/a>\u306e\u516c\u5f0f\u624b\u9806\u901a\u308a\u306b\u5b9f\u884c\u3059\u308c\u3070\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u30b0\u30eb\u30fc\u30d7\u306e\u524a\u9664\u306f\u898b\u9003\u3057\u3084\u3059\u3044\u306e\u3067\u6c17\u3092\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/apple.stackexchange.com\/questions\/342090\/sip-preventing-deletion-of-opt-local\">Ask Different<\/a>\u306b\u3088\u308b\u3068\u3001macOS\u306eSIP\u6a5f\u80fd\u306b\u3088\u308a\u3001macports\u30e6\u30fc\u30b6\u30fc\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3001root\u3067\u3042\u3063\u3066\u3082\u524a\u9664\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u539f\u56e0\u3068\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>MacPorts\u3092\u5b8c\u5168\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306f\u3001macports\u30e6\u30fc\u30b6\u30fc\/\u30b0\u30eb\u30fc\u30d7\u3082\u5fd8\u308c\u305a\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u8a73\u3057\u3044\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u3082\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/softantenna.com\/blog\/how-to-uninstall-macports\/\">https:\/\/softantenna.com\/blog\/how-to-uninstall-macports\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>macOS\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3068\u3057\u3066\u306f\u6700\u8fd1\u300cHomebrew\u300d\u304c\u5727\u5012\u7684\u306a\u4eba\u6c17\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u3002 \u4ee5\u524d\u304b\u3089\u5b58\u5728\u3059\u308b\u300cMacPorts\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u65b9\u3082\u3001\u5927\u52e2\u306b\u9006\u3089\u3048\u305a\u3001\u305d\u308d\u305d\u308dHomebrew\u306b\u79fb\u884c\u3057\u3066\u307f\u3088\u3046\u304b\u3068\u8003\u3048\u3066 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":95165,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2047],"tags":[349],"class_list":["post-95093","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-macports"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/95093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=95093"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/95093\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/95165"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=95093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=95093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=95093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}