0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

centos8 composer を インストール

Last updated at Posted at 2020-06-12

composer を ダウンロードし、インストール。

また /usr/local/bin に composerを設置。


sudo dnf -y install wget
sudo wget https://getcomposer.org/installer -O composer-installer.php
sudo php composer-installer.php --filename=composer --install-dir=/usr/local/bin

composerのバージョン確認


composer -V

あれ?パスが通っていない?


echo $PATH

/usr/local/bin にパスが通っていないみたい。

vim ~/.bashrc


//最終行に追記
export PATH=$PATH:/usr/local/bin


//再読み込み
source ~/.bashrc

//composerのバージョン確認
composer -V

bashrc に記載したのでログアウトしてもパスが通ったまま!OK

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?