RHEL 8にNode.js 10をインストール（AppStream）

# はじめに

Application Stream(AppStream)を利用してRHEL8にNode.js 10をインストール
参考：[RHEL8のパッケージ構成 - BaseOSとApplication Stream - 赤帽エンジニアブログ]( https://rheb.hatenablog.com/entry/rhel8_baseos_and_appstream)

## サポート

本手法で導入した場合、[Red Hat Enterprise Linux 8 Application Streams Life Cycle - Red Hat Customer Portal](https://access.redhat.com/node/4079021)より、2021-04がEOLだと思われる。
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。

## LOG

### インストール

```shell-session
# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)

# yum install -y @nodejs:10
... 略
```

### 各種確認

```shell-session
# which node
/usr/bin/node

# node -v
v10.16.3

# yum module info nodejs:10
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Last metadata expiration check: 0:15:03 ago on Sun Nov 10 09:16:37 2019.
Name             : nodejs
Stream           : 10 [d][e]
Version          : 8000020190911085529
Context          : f8e95b4e
Architecture     : x86_64
Profiles         : common [d] [i], development, minimal, s2i
Default profiles : common
Repo             : ubi-8-appstream
Summary          : Javascript runtime
Description      : Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
Artifacts        : nodejs-1:10.16.3-2.module+el8.0.0+4214+49953fda.src
                 : nodejs-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-debuginfo-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-debugsource-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-devel-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-devel-debuginfo-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-docs-1:10.16.3-2.module+el8.0.0+4214+49953fda.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.src
                 : nodejs-packaging-0:17-3.module+el8+2873+aa7dfd9a.noarch
                 : nodejs-packaging-0:17-3.module+el8+2873+aa7dfd9a.src
                 : npm-1:6.9.0-1.10.16.3.2.module+el8.0.0+4214+49953fda.x86_64

Name             : nodejs
Stream           : 10 [d][e][a]
Version          : 8000020190911085529
Context          : f8e95b4e
Architecture     : x86_64
Profiles         : common [d] [i], development, minimal, s2i
Default profiles : common
Repo             : rhel-8-for-x86_64-appstream-rpms
Summary          : Javascript runtime
Description      : Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
Artifacts        : nodejs-1:10.16.3-2.module+el8.0.0+4214+49953fda.src
                 : nodejs-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-debuginfo-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-debugsource-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-devel-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-devel-debuginfo-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-docs-1:10.16.3-2.module+el8.0.0+4214+49953fda.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.src
                 : nodejs-packaging-0:17-3.module+el8+2873+aa7dfd9a.noarch
                 : nodejs-packaging-0:17-3.module+el8+2873+aa7dfd9a.src
                 : npm-1:6.9.0-1.10.16.3.2.module+el8.0.0+4214+49953fda.x86_64

Name             : nodejs
Stream           : 10 [d][e][a]
Version          : 820190108092226
Context          : 9edba152
Architecture     : x86_64
Profiles         : common [d] [i], development, minimal, s2i
Default profiles : common
Repo             : rhel-8-for-x86_64-appstream-rpms
Summary          : Javascript runtime
Description      : Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
Artifacts        : nodejs-1:10.14.1-1.module+el8+2632+6c5111ed.x86_64
                 : nodejs-devel-1:10.14.1-1.module+el8+2632+6c5111ed.x86_64
                 : nodejs-docs-1:10.14.1-1.module+el8+2632+6c5111ed.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.noarch
                 : nodejs-packaging-0:17-2.module+el8+2632+6c5111ed.noarch
                 : npm-1:6.4.1-1.10.14.1.1.module+el8+2632+6c5111ed.x86_64

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled, [a]ctive
```