{"id":1473,"date":"2018-01-21T12:19:14","date_gmt":"2018-01-21T11:19:14","guid":{"rendered":"https:\/\/www.speich.net\/articles\/?p=1473"},"modified":"2022-10-30T15:18:50","modified_gmt":"2022-10-30T14:18:50","slug":"how-to-update-composer-on-linux-mint-18-3","status":"publish","type":"post","link":"https:\/\/www.speich.net\/articles\/en\/2018\/01\/21\/how-to-update-composer-on-linux-mint-18-3\/","title":{"rendered":"How to update Composer on Linux Mint 18.3"},"content":{"rendered":"\n<p>When you install Composer (the dependency manager for PHP) globally on Linux Mint 18.3 with the package manager&#8230;<\/p>\n\n\n\n<pre><code class=\"language-bash\">$ sudo apt install composer\n$ composer -V\nComposer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27 16:00:34<\/code><\/pre>\n\n\n\n<p>&#8230;you&#8217;ll get the totally outdated version 1.0.0-beta2. The problem is that this version does not support extracting compressed package files &#8216;tar.gz&#8217;. It also does not support updating itself with:<\/p>\n\n\n\n<pre><code class=\"language-bash\">$ composer selfupdate<\/code><\/pre>\n\n\n\n<p>So, you need to download the latest <a href=\"https:\/\/getcomposer.org\/download\/\" target=\"_blank\" rel=\"noopener noreferrer\">composer version<\/a> (currently 1.6.2) manually and then put it into the directory \/usr\/local\/bin\/composer (which overrides \/usr\/bin\/composer)<\/p>\n\n\n\n<pre><code class=\"language-bash\">$ sudo mv composer.phar \/usr\/local\/bin\/composer\n$ chmod +x \/usr\/local\/bin\/composer\n<\/code><\/pre>\n\n\n\n<p>now login &#8211; logout to apply the changes, voila:<\/p>\n\n\n\n<pre><code class=\"language-bash\">$ composer -V\nComposer version 1.6.2 2018-01-05 15:28:41\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When you install Composer (the dependency manager for PHP) globally on Linux Mint 18.3 with the package manager&#8230; $ sudo apt install composer $ composer -V Composer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27 16:00:34 &#8230;you&#8217;ll get the totally outdated version 1.0.0-beta2. The problem is that this version does not support extracting compressed package files &#8216;tar.gz&#8217;. It also &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.speich.net\/articles\/en\/2018\/01\/21\/how-to-update-composer-on-linux-mint-18-3\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to update Composer on Linux Mint 18.3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[315,6],"tags":[262,54],"class_list":["post-1473","post","type-post","status-publish","format-standard","hentry","category-linux","category-php","tag-composer","tag-linux-mint","entry"],"_links":{"self":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/comments?post=1473"}],"version-history":[{"count":7,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1473\/revisions"}],"predecessor-version":[{"id":1651,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1473\/revisions\/1651"}],"wp:attachment":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/media?parent=1473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/categories?post=1473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/tags?post=1473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}