{"id":89530,"date":"2021-08-04T09:03:43","date_gmt":"2021-08-04T00:03:43","guid":{"rendered":"https:\/\/softantenna.com\/wp\/?p=89530"},"modified":"2021-08-04T09:03:43","modified_gmt":"2021-08-04T00:03:43","slug":"how-to-install-wsl-one-command","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/how-to-install-wsl-one-command\/","title":{"rendered":"Windows Subsystem for Linux(WSL)\u3092\u30ef\u30f3\u30b3\u30de\u30f3\u30c9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2021\/08\/s_20210802_143514.jpg\" alt=\"S 20210802 143514\" title=\"s_20210802_143514.jpg\" border=\"0\" width=\"1058\" height=\"586\" \/><\/p>\n<p>Windows 10\u3067\u306f\u300cWindows Subsystem for Linux(WSL)\u300d\u3092\u4f7f\u7528\u3057\u3066\u3001Linux\u3092\u5b9f\u884c\u3059\u308b\u4e8b\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>WSL\u306e\u6539\u5584\u306f\u73fe\u5728\u3082\u7d9a\u3051\u3089\u308c\u3066\u304a\u308a\u3001\u6700\u8fd1\u516c\u958b\u3055\u308c\u305fWindows 10 Version 2004\/20H2\/21H1\u74b0\u5883\u5411\u3051\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8KB5004296\u3092\u9069\u7528\u3059\u308b\u3068\u3001\u4e00\u3064\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3001WSL\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u5b8c\u4e86\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2021\/08\/s_20210802_131108.jpg\" alt=\"S 20210802 131108\" title=\"s_20210802_131108.jpg\" border=\"0\" width=\"959\" height=\"626\" \/><\/p>\n<p>\u4ee5\u4e0b\u305d\u306e\u65b9\u6cd5\u3092\u5177\u4f53\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u6a5f\u80fd\u306f2020\u5e7410\u6708\u306bWindows Insider Program\u53c2\u52a0\u8005\u5411\u3051\u306b\u516c\u958b\u3055\u308c\u305fWindows 10\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u3067\u5148\u884c\u3057\u3066\u5b9f\u88c5\u3055\u308c\u3066\u304a\u308a\u3001Windows 10\u306e\u88fd\u54c1\u7248\u306b\u6a5f\u80fd\u304c\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u3055\u308c\u305f\u3068\u306e\u3053\u3068\u3067\u3059(<a href=\"https:\/\/devblogs.microsoft.com\/commandline\/install-wsl-with-a-single-command-now-available-in-windows-10-version-2004-and-higher\/\">Windows Command Line<\/a>)\u3002<\/p>\n<h2>wsl --install\u3092\u5b9f\u884c<\/h2>\n<p>\u30ef\u30f3\u30b3\u30de\u30f3\u30c9\u3067WSL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306fKB5004296\u4ee5\u964d\u306e\u66f4\u65b0\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002KB5004296\u306f7\u6708\u672b\u306b\u516c\u958b\u3055\u308c\u305f\u30d7\u30ec\u30d3\u30e5\u30fc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306a\u306e\u30672021\u5e748\u6708\u4ee5\u964d\u306e\u6708\u4f8b\u66f4\u65b0\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u6539\u826f\u304c\u53d6\u308a\u8fbc\u307e\u308c\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>WSL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u7ba1\u7406\u8005\u6a29\u9650\u3067\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304d\u300cwsl.exe --install\u300d\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u5f15\u6570\u306a\u3057\u306e\u5834\u5408\u30c7\u30d5\u30a9\u30eb\u30c8\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308b\u300cUbuntu\u300d\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\r\nwsl --install\r\n<\/pre>\n<p>\u5229\u7528\u53ef\u80fd\u306aLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\nwsl --list --online\r\n<\/pre>\n<p>\u73fe\u5728\u4ee5\u4e0b\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ul>\n<li>Ubuntu Ubuntu<\/li>\n<li>Debian Debian GNU\/Linux<\/li>\n<li>kali-linux Kali Linux Rollin<\/li>\n<li>openSUSE-42 openSUSE Leap 42<\/li>\n<li>SLES-12 SUSE Linux Enterprise Server v12<\/li>\n<li>Ubuntu-16.04 Ubuntu 16.04 LTS<\/li>\n<li>Ubuntu-18.04 Ubuntu 18.04 LTS<\/li>\n<li>Ubuntu-20.04 Ubuntu 20.04 LTS<\/li>\n<\/ul>\n<p>Ubuntu\u4ee5\u5916\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u3001\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059(\u4f8b: wsl --install -d Ubuntu)\u3002<\/p>\n<pre>\r\nwsl --install -d &lt;\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u540d&gt; \r\n<\/pre>\n<p>WSL\u306eLinux\u30ab\u30fc\u30cd\u30eb\u3092\u66f4\u65b0\u3059\u308b\u4e8b\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\nwsl --update\r\n<\/pre>\n<p>\u30ab\u30fc\u30cd\u30eb\u306e\u66f4\u65b0\u3092\u53d6\u308a\u6d88\u3059\u4e8b\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre>\r\nwsl --update rollback\r\n<\/pre>\n<p>WSL\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3082\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\nwsl --status\r\n<\/pre>\n<p>\u306a\u304a\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001WSL\u306eVersion 2\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u300cwsl --status\u300d\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067WSL\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2021\/08\/s_20210802_143540.jpg\" alt=\"S 20210802 143540\" title=\"s_20210802_143540.jpg\" border=\"0\" width=\"1055\" height=\"591\" \/><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u6700\u65b0\u306ewsl\u30b3\u30de\u30f3\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30ef\u30f3\u30b3\u30de\u30f3\u30c9\u3067Windows 10\u4e0a\u306bLinux\u74b0\u5883\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8208\u5473\u306e\u3042\u308b\u578b\u306f\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows 10\u3067\u306f\u300cWindows Subsystem for Linux(WSL)\u300d\u3092\u4f7f\u7528\u3057\u3066\u3001Linux\u3092\u5b9f\u884c\u3059\u308b\u4e8b\u304c\u53ef\u80fd\u3067\u3059\u3002 WSL\u306e\u6539\u5584\u306f\u73fe\u5728\u3082\u7d9a\u3051\u3089\u308c\u3066\u304a\u308a\u3001\u6700\u8fd1\u516c\u958b\u3055\u308c\u305fWindows 10 Vers [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":89565,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2047],"tags":[37,4283,4106],"class_list":["post-89530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-linux","tag-widnows","tag-wsl"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/89530","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=89530"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/89530\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/89565"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=89530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=89530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=89530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}