Dropbox Command Line

2012 Feb 28 at 13:46 » Tagged as :centos, cloud, ubuntu, dropbox, perl,

There are many command line clients for dropbox, but one that I liked as soon as I saw it was the rather boringly name dropbox-api-command (I suppose all the good names had been taken). Installation is easy but if you are on Fedora or CentOS, the first line in the installation instructions will not work for you:

cpanm JSON Path::Class WebService::Dropbox DateTime::Format::Strptime wget https://github.com/s-aska/dropbox-api-command/raw/master/dropbox-api cp dropbox-api ~/bin/dropbox-api chmod +x ~/bin/dropbox-api

There's no command named cpanm in these distros. However you can easily install the required perl modules as follows: yum install perl-JSON perl-Path-Class perl-DateTime-Format-Strptime that still doesn't work for the WebService::Dropbox module though because a binary isn't available. But there is always more than one way to skin a cat on linux. We can invoke the perl CPAN shell. perl -MCPAN -e shell and then type install WebService::Dropbox It will go through a series of rather tiresome depsolving but in end you will have your Dropbox command line client installed even though you would be sick of it by then.