{"id":3928,"date":"2022-06-01T07:07:20","date_gmt":"2022-06-01T07:07:20","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=3928"},"modified":"2022-06-01T07:07:20","modified_gmt":"2022-06-01T07:07:20","slug":"install-the-dart-sdk-on-linux","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/06\/01\/install-the-dart-sdk-on-linux\/","title":{"rendered":"Install the Dart SDK on Linux"},"content":{"rendered":"\n<p>The steps of Dart installation on\u00a0Linux\u00a0is given below.<\/p>\n\n\n\n<p>Before installing the\u00a0Dart, if you are Debian\/Ubuntu on AMD64(64-bit Intel) in your local machine, you can install the Dart through one of the following options.<\/p>\n\n\n\n<ul><li>Install using apt-get<\/li><li>Install a Debian package<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Installation using apt-get<\/h3>\n\n\n\n<p><strong>Step -1:<\/strong>&nbsp;Type the following commands for a one-time setup.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><\/p>\n\n\n\n<ol><li>$sudo&nbsp;apt-get&nbsp;update&nbsp;&nbsp;<\/li><li class=\"\">$&nbsp;sudo&nbsp;apt-get&nbsp;install&nbsp;apt-transport-https&nbsp;&nbsp;<\/li><li>&nbsp;&nbsp;<\/li><li class=\"\">$&nbsp;sudo&nbsp;sh&nbsp;-c&nbsp;&#8216;wget&nbsp;-qO-&nbsp;https:\/\/dl-ssl.google.com\/linux\/linux_signing_key.pub&nbsp;|&nbsp;apt-key&nbsp;add&nbsp;-&#8216;&nbsp;&nbsp;<\/li><li>&nbsp;&nbsp;<\/li><li class=\"\">$&nbsp;sudo&nbsp;sh&nbsp;-c&nbsp;&#8216;wget&nbsp;-qO-&nbsp;https:\/\/storage.googleapis.com\/download.dartlang.org\/linux\/debian\/dart_stable.list&nbsp;&gt;&nbsp;\/etc\/apt\/sources.list.d\/dart_stable.list&#8217;&nbsp;&nbsp;<\/li><\/ol>\n\n\n\n<p><strong>Step &#8211; 2:<\/strong>&nbsp;Type the following command in terminal to install the Dart SDK using apt-get option.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><\/p>\n\n\n\n<ol><li>$sudo&nbsp;apt-get&nbsp;update&nbsp;&nbsp;<\/li><li class=\"\">$&nbsp;sudo&nbsp;apt-get&nbsp;install&nbsp;dart&nbsp;&nbsp;<\/li><\/ol>\n\n\n\n<p>It will successfully download the Dart SDK.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installation a Debian Package<\/h3>\n\n\n\n<p>We can download&nbsp;<strong>Dart SDK<\/strong>&nbsp;as a Debian package in the&nbsp;<strong>.deb package<\/strong>&nbsp;format. To make all Dart binaries accessible, we have to change the PATH by typing the following command.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><\/p>\n\n\n\n<ol><li>export&nbsp;PATH=&#8221;$PATH:\/usr\/lib\/dart\/bin&#8221;&nbsp;&nbsp;<\/li><\/ol>\n\n\n\n<p>To change the PATH for upcoming terminal sessions, use a below command:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><a href=\"https:\/\/www.javatpoint.com\/dart-installation#\"><\/a><\/p>\n\n\n\n<ol><li>$&nbsp;echo&nbsp;&#8216;export&nbsp;PATH=&#8221;$PATH:\/usr\/lib\/dart\/bin&#8221;&#8216;&nbsp;&gt;&gt;&nbsp;~\/.profile&nbsp;&nbsp;<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The steps of Dart installation on\u00a0Linux\u00a0is given below. Before installing the\u00a0Dart, if you are Debian\/Ubuntu on AMD64(64-bit Intel) in your local machine, you can install the Dart through one of the following options. Install using apt-get Install a Debian package Installation using apt-get Step -1:&nbsp;Type the following commands for a one-time setup. $sudo&nbsp;apt-get&nbsp;update&nbsp;&nbsp; $&nbsp;sudo&nbsp;apt-get&nbsp;install&nbsp;apt-transport-https&nbsp;&nbsp; &nbsp;&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[797],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/3928"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=3928"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/3928\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=3928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=3928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=3928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}