Installation
Linode CLI is currently packaged for Debian, Ubuntu, and through Homebrew on Mac OS X. Final versions of linode-cli will be packaged up and very easy to install for major distributions.
Debian/Ubuntu
sudo bash -c 'echo "deb http://apt.linode.com/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/linode.list'
wget -O- https://apt.linode.com/linode.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install linode-cli
Mac OS X
Installing the packaged version of Linode CLI on Mac OS X requires Homebrew: http://brew.sh
brew install linode/cli/linode-cli
Others
You'll need the following Perl modules. They can be installed from the CPAN using your preferred method.
JSON
LWP
Mozilla::CA
Try::Tiny
WebService::Linode
Then, download the Linode CLI tarball, extract it, and install:
curl -Lo linode-cli.tar.gz https://github.com/linode/cli/archive/master.tar.gz
tar xf linode-cli.tar.gz
cd cli-master && perl Makefile.PL && sudo make install
Centos 安装 Linode CLI
安装 perl 以及 Linode CLI依赖的 perl 的模块
yum install perl
安装 cpanm 用于安装 perl 模块
wget http://xrl.us/cpanm -O /usr/bin/cpanm; chmod +x /usr/bin/cpanm
cpanm JSON
cpanm LWP
cpanm Mozilla::CA
cpanm Try::Tiny
cpanm WebService::Linode
curl -Lo linode-cli.tar.gz https://github.com/linode/cli/archive/master.tar.gz
tar xf linode-cli.tar.gz
cd cli-master && perl Makefile.PL && sudo make install
没有评论