Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ja: Update Debian/Ubuntu/RHEL section #1861

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
231 changes: 4 additions & 227 deletions locale/ja/download/package-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ title: パッケージマネージャを利用した Node.js のインストー
----------------------------

* [Arch Linux](#arch-linux)
* [Debian と Ubuntu ベースの Linux ディストリビューション](#debian-and-ubuntu-based-linux-distributions-debian-ubuntu-linux)
* [Enterprise Linux と Fedora](#enterprise-linux-and-fedora-enterprise-linux-fedora)
* [Debian と Ubuntu ベースの Linux ディストリビューション、エンタープライズ Linux/Fedora と Snap パッケージ](#debian-ubuntu-linux-linux-fedora-snap)
* [FreeBSD と OpenBSD](#freebsd-openbsd)
* [Gentoo](#gentoo)
* [NetBSD](#netbsd)
Expand All @@ -35,232 +34,10 @@ pacman -S nodejs npm
```


## <!-- Debian and Ubuntu based Linux distributions --> Debian と Ubuntu ベースの Linux ディストリビューション

<!-- Also including: **Linux Mint**, **Linux Mint Debian Edition (LMDE)**, **elementaryOS** and others. -->
これらも含みます: **Linux Mint**, **Linux Mint Debian Edition (LMDE)**, **elementaryOS** 等。

<!-- Node.js is available from the [NodeSource](https://nodesource.com) Debian and Ubuntu binary distributions repository (formerly [Chris Lea's](https://github.com/chrislea) Launchpad PPA). Support for this repository, along with its scripts, can be found on GitHub at [nodesource/distributions](https://github.com/nodesource/distributions). -->
Node.js は [NodeSource](https://nodesource.com) の Debian と Ubuntu ベースの Linux ディストリビューションリポジトリ (以前の [Chris Lea's](https://github.com/chrislea) Launchpad PPA) から利用できます。このリポジトリをサポートするには、GitHub にある [nodesource/distributions](https://github.com/nodesource/distributions) を参照ください。

<!-- **NOTE:** If you are using Ubuntu Precise or Debian Wheezy, you might want to read about [running Node.js >= 4.x on older distros](https://github.com/nodesource/distributions/blob/master/OLDER_DISTROS.md). -->
**注意:** Ubuntu Precise や Debian Wheezy をお使いの場合は、 [running Node.js >= 6.x on older distros](https://github.com/nodesource/distributions/blob/master/OLDER_DISTROS.md) を読むことをお勧めします。

```bash
wget -qO- https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
```

<!-- Alternatively, for Node.js v6: -->
Node.js v8 を利用するには:

```bash
wget -qO- https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
```

<!-- ***Optional***: install build tools -->
***任意***: ビルドツールのインストール

<!-- To compile and install native addons from npm you may also need to install build tools: -->
npm からネイティブアドオンをコンパイル・インストールするにはビルドツールのインストールが必要です。

```bash
sudo apt-get install -y build-essential
```

<!-- **Available architectures:** -->
**利用可能なアーキテクチャ:**

* **i386** (32-bit)
* **amd64** (64-bit)
* **armhf** (ARM 32-bit hard-float, ARMv7 and up: _arm-linux-gnueabihf_)

<!-- **Supported Ubuntu versions:** -->
**サポートしている Ubuntu のバージョン:**

* **Ubuntu 14.04 LTS** (Trusty Tahr)
* **Ubuntu 16.04 LTS** (Xenial Xerus)

<!-- **Supported Debian versions:** -->
**サポートしている Debian のバージョン:**

* **Debian 7** (wheezy)
* **Debian 8 / stable** (jessie)
* **Debian testing** (stretch, aliased to jessie)
* **Debian unstable** (sid)

<!-- A Node.js package is also available in the [official repo](http://packages.debian.org/search?searchon=names&keywords=nodejs) for Debian Sid (unstable), Jessie (testing) and Wheezy (wheezy-backports) as "nodejs". It only installs a `nodejs` binary. -->
Debian Sid (unstable)、Jessie (testing) と Wheezy (wheezy-backports) の[公式リポジトリ](http://packages.debian.org/search?searchon=names&keywords=nodejs)からも「nodejs」のパッケージが利用可能です。

<!-- The [nodejs-legacy package](http://packages.debian.org/search?searchon=names&keywords=nodejs-legacy) installs a `node` symlink that is needed by many modules to build and run correctly.
The Node.js modules available in the distribution official repositories do not need it. -->
[nodejs-legacy パッケージ](http://packages.debian.org/search?searchon=names&keywords=nodejs-legacy) は `node` のシンボリックリンクを作ります。これはたくさんのモジュールをビルドし正しく動かすために必要です。
ディストリビューションの公式リポジトリで利用可能な Node.js のモジュールでは、これを必要としません。

<!-- **Supported Linux Mint versions:** -->
**サポートしている Linux Mint のバージョン:**

* **Linux Mint 17 "Qiana"** (via Ubuntu 14.04 LTS)
* **Linux Mint 17.1 "Rebecca"** (via Ubuntu 14.04 LTS)
* **Linux Mint 17.2 "Rafaela"** (via Ubuntu 14.04 LTS)
* **Linux Mint Debian Edition (LMDE) 2 "Betsy"** (via Debian 8)

<!-- **Supported elementary OS versions:** -->
**サポートしている elementary OS のバージョン:**

* **elementary OS Freya** (via Ubuntu 14.04 LTS)

<!-- **Supported Trisquel versions:** -->
**サポートしている Trisquel のバージョン:**

* **Trisquel 7 "Belenos"** (via Ubuntu 14.04 LTS)

<!-- **Supported BOSS versions:** -->
**サポートしている BOSS のバージョン:**

* **BOSS 5.0 "Anokha"** (via Debian 7)

## <!-- Enterprise Linux and Fedora --> Enterprise Linux と Fedora

<!-- Including **Red Hat® Enterprise Linux®** / **RHEL**, **CentOS** and **Fedora**. -->
**Red Hat® Enterprise Linux®** / **RHEL**、 **CentOS** と **Fedora** を含みます。

<!-- Node.js is available from the [NodeSource](https://nodesource.com) Enterprise Linux and Fedora binary distributions repository. Support for this repository, along with its scripts, can be found on GitHub at [nodesource/distributions](https://github.com/nodesource/distributions). -->
Node.js は [NodeSource](https://nodesource.com) の Enterprise Linux と Fedora バイナリディストリビューションリポジトリからも利用できます。このリポジトリをサポートするには、GitHub にある [nodesource/distributions](https://github.com/nodesource/distributions) を参照ください。

<!-- Note that the Node.js packages for EL 5 (RHEL5 and CentOS 5) depend on the **[EPEL](https://fedoraproject.org/wiki/EPEL)** repository being available. The setup script will check and provide instructions if it is not installed. -->
EL 5 (RHEL5 と CentOS 5)用の Node.js パッケージは **[EPEL](https://fedoraproject.org/wiki/EPEL)** リポジトリに依存していますのでご注意ください。セットアップ用のスクリプトがチェックをして、もしそれがインストールされていない場合はインストール方法を説明します。

<!-- Run as root on RHEL, CentOS or Fedora, for Node.js v4 LTS Argon: -->
Node.js v4 LTS Argon を RHEL、CentOS や Fedora で利用するには root で実行してください:

```bash
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
```

<!-- Alternatively for Node.js v6: -->
Node.js v6 を利用するには:

```bash
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
```

<!-- Alternatively for Node.js 0.10: -->
Node.js 0.10 を利用するには:

```bash
curl --silent --location https://rpm.nodesource.com/setup | bash -
```

<!-- Then install, as root: -->
root でインストール:

```bash
yum -y install nodejs
```

<!-- ***Optional***: install build tools -->
***任意***: ビルドツールのインストール

<!-- To compile and install native addons from npm you may also need to install build tools: -->
npm からネイティブアドオンをコンパイル・インストールするにはビルドツールのインストールが必要です。


```bash
yum install gcc-c++ make
# or: yum groupinstall 'Development Tools'
```

<!-- **Available architectures:** -->
**利用可能なアーキテクチャ:**

* **i386** (32-bit, not available for EL7)
* **x86_64** (64-bit)

<!-- **Supported Red Hat® Enterprise Linux® versions:** -->
**サポートしている Red Hat® Enterprise Linux® のバージョン**

* **RHEL 5** (32-bit and 64-bit)
* **RHEL 6** (32-bit and 64-bit)
* **RHEL 7** (64-bit)

<!-- **Supported CentOS versions:** -->
**サポートしている CentOS バージョン:**

* **CentOS 5** (32-bit and 64-bit)
* **CentOS 6** (32-bit and 64-bit)
* **CentOS 7** (64-bit)

<!-- **Supported CloudLinux versions:** -->
**サポートしている CloudLinux バージョン:**
* **CloudLinux 6** (32-bit and 64-bit)

<!-- **Supported Fedora versions:** -->
**サポートしている Fedora バージョン:**

* **Fedora 21 (Twenty One)** (32-bit and 64-bit)
* **Fedora 20 (Heisenbug)** (32-bit and 64-bit)
* **Fedora 19 (Schrödinger's Cat)** (32-bit and 64-bit)

<!-- **Other distributions known to be supported:** -->
**その他こちらもサポートしています:**

* **Oracle Linux** (mirrors RHEL very closely)
* **Amazon Linux** (tested on 2016.03)

### 代替手段

<!-- Official **Fedora** [Node.js](https://apps.fedoraproject.org/packages/nodejs) and [npm](https://apps.fedoraproject.org/packages/npm) packages are available in Fedora 18 and later. Install with: -->
Fedora 18 以降では、公式の **Fedora** [Node.js](https://apps.fedoraproject.org/packages/nodejs) と [npm](https://apps.fedoraproject.org/packages/npm) パッケージが利用可能です。

```bash
sudo yum install nodejs npm
```

<!-- In a hurry for the latest updates? [Grab them from updates-testing.](https://fedoraproject.org/wiki/QA:Updates_Testing) -->
最新のアップデートをお急ぎですか? [updates-testing を参照してください。](https://fedoraproject.org/wiki/QA:Updates_Testing)

<!-- **Enterprise Linux** (RHEL and CentOS) users may use the Node.js and npm packages from the [EPEL](https://fedoraproject.org/wiki/EPEL) repository. -->
**Enterprise Linux** (RHEL と CentOS) のユーザーは、[EPEL](https://fedoraproject.org/wiki/EPEL)リポジトリから Node.js と npm パッケージを利用可能です。

<!-- Install the appropriate *epel-release* RPM for your version (found on the [EPEL](https://fedoraproject.org/wiki/EPEL) repository homepage), then run: -->
お使いのバージョンに適切な *epel-release* RPM をインストールし ([EPEL](https://fedoraproject.org/wiki/EPEL)リポジトリから見つかります)、そして実行します:

```bash
sudo yum install nodejs npm --enablerepo=epel
```

<!-- In a hurry for the latest updates? [Grab them from epel-testing.](https://fedoraproject.org/wiki/EPEL/testing) -->
最新のアップデートをお急ぎですか? [epel-testing を参照してください。](https://fedoraproject.org/wiki/EPEL/testing)


<!-- **Available architectures:** -->
**利用可能なアーキテクチャ:**

* **i686** (32-bit, not available for EL7)
* **x86_64** (64-bit)
* **armv6hl** (Raspberry Pi, [Pidora](http://pidora.ca) only)
* **armv7hl** (32-bit ARM hard-float, ARMv7 and up, Fedora only)

<!-- **Supported Red Hat® Enterprise Linux® versions:** -->
**サポートしている Red Hat® Enterprise Linux® バージョン:**

* **RHEL 6** (i686/x86_64)
* **RHEL 7** (x86_64)

<!-- Additionally, versions of **CentOS** and **Scientific Linux** corresponding to the above RHEL versions are also officially supported by all EPEL packages, including nodejs. Amazon Linux is not officially supported by EPEL due to significant incompatibilities previously reported to the epel-devel mailing list, however you might find that nodejs at least still works. -->

また、RHELバージョンに該当する **CentOS** と **Scientific Linux** も全ての EPEL パッケージによって nodejs も含め公式にサポートされています。Amazon Linux は epel-devel のメーリングリストに以前報告された影響の大きな非互換性があるため、公式にはサポートされていません。しかし nodejs の動作は確認出来るでしょう。

<!-- **Supported Fedora versions:** -->
**サポートしている Fedora バージョン:**

* **Fedora Rawhide** (i686/x86_64/armv7hl)
* **Fedora 21** (i686/x86_64/armv7hl)
* **Fedora 20 (Heisenbug)** (i686/x86_64/armv6hl/armv7hl)
* **Fedora 19 (Schrödinger's Cat)** (i686/x86_64/armv7hl)
## <!-- Debian and Ubuntu based Linux distributions, Enterprise Linux/Fedora and Snap packages --> Debian と Ubuntu ベースの Linux ディストリビューション、エンタープライズ Linux/Fedora と Snap packages

<!-- [Official Node.js binary distributions](https://github.com/nodesource/distributions/blob/master/README.md) are provided by NodeSource. -->
[Node.js 公式のバイナリディストリビューション](https://github.com/nodesource/distributions/blob/master/README.md)が NodeSource によって提供されています。

<!-- ## FreeBSD and OpenBSD -->
## FreeBSD と OpenBSD
Expand Down