パッケージを検索するサイト(https://pkgs.org)でonedriveのパッケージを見付けたのでCentOS7にyumでインストールしてみました。
パッケージの詳細
どうやら https://github.com/skilion/onedrive のパッケージをDコンパイラでコンパイルして実行ファイルにしたもののようです。
リポジトリ(harbottle-main)を追加する
$ yum install https://harbottle.gitlab.io/harbottle-main/7/x86_64/00703701-harbottle-main-release/harbottle-main-release-7-5.el7.noarch.rpm
読み込んだプラグイン:fastestmirror
harbottle-main-release-7-5.el7.noarch.rpm | 10 kB 00:00:00
/var/tmp/yum-root-WjeDc7/harbottle-main-release-7-5.el7.noarch.rpm を調べています: harbottle-main-release-7-5.el7.noarch
/var/tmp/yum-root-WjeDc7/harbottle-main-release-7-5.el7.noarch.rpm をインストール済みとして設定しています
依存性の解決をしています
- > トランザクションの確認を実行しています。
- > パッケージ harbottle-main-release.noarch 0:7-5.el7 を インストール
- > 依存性解決を終了しました。
依存性を解決しました
=============================================================================================================
Package アーキテクチャー
バージョン リポジトリー 容量
=============================================================================================================
インストール中:
harbottle-main-release noarch 7-5.el7 /harbottle-main-release-7-5.el7.noarch 18 kトランザクションの要約
=============================================================================================================
インストール 1 パッケージ合計容量: 18 k
インストール容量: 18 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : harbottle-main-release-7-5.el7.noarch 1/1
検証中 : harbottle-main-release-7-5.el7.noarch 1/1インストール:
harbottle-main-release.noarch 0:7-5.el7完了しました!
yum searchでonedriveを探してみる。
$ yum search onedrive
読み込んだプラグイン:fastestmirror
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 7.0 kB 00:00:00
extras | 3.4 kB 00:00:00
harbottle-main | 3.5 kB 00:00:00
ius | 2.3 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): harbottle-main/x86_64/primary_db | 54 kB 00:00:01
(2/2): ius/x86_64/primary_db | 243 kB 00:00:01
Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: ftp.riken.jp
* extras: ftp.jaist.ac.jp
* ius: hkg.mirror.rackspace.com
* updates: ftp.jaist.ac.jp
=========================================== N/S matched: onedrive ===========================================
onedrive.x86_64 : OneDrive Free Client written in D
onedrive-debuginfo.x86_64 : Debug information for package onedriveName and summary matches only, use "search all" for everything.
インストールしてみる
$ yum install onedrive
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: mirror.dmmlabs.jp
* extras: ftp.iij.ad.jp
* ius: dfw.mirror.rackspace.com
* updates: ftp.iij.ad.jp
依存性の解決をしています
- > トランザクションの確認を実行しています。
- > パッケージ onedrive.x86_64 0:1.0.1.20180106gitc7e0930-1.el7.harbottle を インストール
- > 依存性の処理をしています: libdruntime-ldc.so.77()(64bit) のパッケージ: onedrive-1.0.1.20180106gitc7e0930-1.el7.harbottle.x86_64
- > 依存性の処理をしています: libphobos2-ldc.so.77()(64bit) のパッケージ: onedrive-1.0.1.20180106gitc7e0930-1.el7.harbottle.x86_64
- > トランザクションの確認を実行しています。
- > 依存性解決を終了しました。
依存性を解決しました
=============================================================================================================
Package アーキテクチャー
バージョン リポジトリー 容量
=============================================================================================================
インストール中:
onedrive x86_64 1.0.1.20180106gitc7e0930-1.el7.harbottle harbottle-main 213 k
依存性関連でのインストールをします:
ldc-druntime x86_64 1:1.7.0-2.el7.harbottle harbottle-main 526 k
ldc-phobos x86_64 1:1.7.0-2.el7.harbottle harbottle-main 2.0 Mトランザクションの要約
=============================================================================================================
インストール 1 パッケージ (+2 個の依存関係のパッケージ)総ダウンロード容量: 2.7 M
インストール容量: 13 M
Is this ok [y/d/N]: y
Downloading packages:
警告: /var/cache/yum/x86_64/7/harbottle-main/packages/ldc-druntime-1.7.0-2.el7.harbottle.x86_64.rpm: ヘッダー V3 RSA/SHA1 Signature、鍵 ID e148e740: NOKEY
ldc-druntime-1.7.0-2.el7.harbottle.x86_64.rpm の公開鍵がインストールされていません
(1/3): ldc-druntime-1.7.0-2.el7.harbottle.x86_64.rpm | 526 kB 00:00:02
(2/3): onedrive-1.0.1.20180106gitc7e0930-1.el7.harbottle.x86_64.rpm | 213 kB 00:00:00
(3/3): ldc-phobos-1.7.0-2.el7.harbottle.x86_64.rpm | 2.0 MB 00:00:05
- -
合計 493 kB/s | 2.7 MB 00:00:05
https://copr-be.cloud.fedoraproject.org/results/harbottle/main/pubkey.gpg から鍵を取得中です。
Importing GPG key 0xE148E740:
Userid : "harbottle_main (None)"
Fingerprint: f1df c563 31a9 d77e a8cc ae17 df9b 4194 e148 e740
From : https://copr-be.cloud.fedoraproject.org/results/harbottle/main/pubkey.gpg
上記の処理を行います。よろしいでしょうか? [y/N]y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : 1:ldc-druntime-1.7.0-2.el7.harbottle.x86_64 1/3
インストール中 : 1:ldc-phobos-1.7.0-2.el7.harbottle.x86_64 2/3
インストール中 : onedrive-1.0.1.20180106gitc7e0930-1.el7.harbottle.x86_64 3/3
検証中 : 1:ldc-druntime-1.7.0-2.el7.harbottle.x86_64 1/3
検証中 : 1:ldc-phobos-1.7.0-2.el7.harbottle.x86_64 2/3
検証中 : onedrive-1.0.1.20180106gitc7e0930-1.el7.harbottle.x86_64 3/3インストール:
onedrive.x86_64 0:1.0.1.20180106gitc7e0930-1.el7.harbottle依存性関連をインストールしました:
ldc-druntime.x86_64 1:1.7.0-2.el7.harbottle ldc-phobos.x86_64 1:1.7.0-2.el7.harbottle完了しました!
onedriveの認証と起動
下記ページの手順通りにします。
https://github.com/skilion/onedrive
onedriveのバージョンについて
$ onedrive --version
onedrive 1.0.1.20180106gitc7e0930
2018年2月11日現在の最新は v1.1.1 なので少し古いです。