CentOS
PhantomJS

CentOS6にyumでphantomjs 2.1.1をインストール

More than 1 year has passed since last update.


概要


  • CentOS6にyumでphantomjs 2.1.1をインストールする

  • repo.okay.com.mxのreposを使う


前提


  • CentOS release 6.5 (Final)


インストール

$ sudo yum install epel-release

$ sudo rpm -ivh http://repo.okay.com.mx/centos/6/x86_64/release/okay-release-1-1.noarch.rpm
$ sudo yum search all phantomjs
=========================================== N/S Matched: phantomjs ============================================
phantomjs.x86_64 : a headless WebKit with JavaScript API
phantomjs19.x86_64 : a headless WebKit with JavaScript API

Name and summary matches only, use "search all" for everything.
$ sudo yum install phantomjs.x86_64
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* epel: ftp.riken.jp
* extras: www.ftp.ne.jp
* updates: www.ftp.ne.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phantomjs.x86_64 0:2.1.1-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================
Package Arch Version Repository Size
===============================================================================================================
Installing:
phantomjs x86_64 2.1.1-1.el6 okay 14 M

Transaction Summary
===============================================================================================================
Install 1 Package(s)

Total download size: 14 M
Installed size: 42 M
Is this ok [y/N]: y
Downloading Packages:
phantomjs-2.1.1-1.el6.x86_64.rpm | 14 MB 00:31
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID ac25decd: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-OKAY
Importing GPG key 0xAC25DECD:
Userid : Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
Package: okay-release-1-1.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-OKAY
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : phantomjs-2.1.1-1.el6.x86_64 1/1
Verifying : phantomjs-2.1.1-1.el6.x86_64 1/1

Installed:
phantomjs.x86_64 0:2.1.1-1.el6
$ phantomjs -v
2.1.1


See also

https://okay.com.mx/en/linux/rpm-repositories-for-centos-6-and-7.html