From 865438d3b7996d57c77473e920323ffed2789fe8 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski Date: Mon, 21 May 2018 15:44:27 +0200 Subject: [PATCH] Update FreeBSD installation instructions (#1658) * Update FreeBSD installation instructions It requires splitting the FreeBSD and OpenBSD section into two sections as those operating systems use different tools for package management. Also, this patch updates only instructions in English. * Fix some typos and improve wording --- locale/en/download/package-manager.md | 62 ++++++++++----------------- locale/uk/download/package-manager.md | 48 ++++++++++----------- 2 files changed, 45 insertions(+), 65 deletions(-) diff --git a/locale/en/download/package-manager.md b/locale/en/download/package-manager.md index 8e4418d32502c..ec2c20b69b8a9 100644 --- a/locale/en/download/package-manager.md +++ b/locale/en/download/package-manager.md @@ -13,10 +13,11 @@ title: Installing Node.js via package manager * [Arch Linux](#arch-linux) * [Debian and Ubuntu based Linux distributions](#debian-and-ubuntu-based-linux-distributions) * [Enterprise Linux and Fedora](#enterprise-linux-and-fedora) -* [FreeBSD and OpenBSD](#freebsd-and-openbsd) +* [FreeBSD](#freebsd) * [Gentoo](#gentoo) * [NetBSD](#netbsd) * [nvm](#nvm) +* [OpenBSD](#openbsd) * [openSUSE and SLE](#opensuse-and-sle) * [macOS](#macos) * [SmartOS and illumos](#smartos-and-illumos) @@ -229,51 +230,20 @@ Additionally, versions of **CentOS** and **Scientific Linux** corresponding to t * **Fedora 27** (i686/x86_64/armv7hl/aarch64/ppc64/ppc64le/s390x) * **Fedora 26** (i686/x86_64/armv7hl/aarch64/ppc64/ppc64le) +## FreeBSD -## FreeBSD and OpenBSD +The most recent release of Node.js is available via the [www/node](http://freshports.org/www/node) port. -Node.js is available through the ports system. - -**FreeBSD**: - -```bash -/usr/ports/www/node -``` - -**OpenBSD**: - -```bash -/usr/ports/lang/node -``` - -Development versions are also available using ports on FreeBSD - -```bash -cd /usr/ports/www/node-devel/ && make install clean -``` - -Or packages on FreeBSD: - -```bash -pkg_add -r node-devel -``` - -Using [pkg-ng](https://wiki.freebsd.org/pkgng) on FreeBSD +Install a binary package via [pkg](https://www.freebsd.org/cgi/man.cgi?pkg): -```bash +```sh pkg install node ``` -Or the development versions: - -```bash -pkg install node-devel -``` - -Using [pkg_add](http://man.openbsd.org/OpenBSD-current/man1/pkg_add.1) on OpenBSD +Or compile it on your own using [ports](https://www.freebsd.org/cgi/man.cgi?ports): -```bash -pkg_add node +```sh +cd /usr/ports/www/node && make install ``` ## Gentoo @@ -326,6 +296,20 @@ from source: $ nvm uninstall 8 ``` +## OpenBSD + +Node.js is available through the ports system. + +```bash +/usr/ports/lang/node +``` + +Using [pkg_add](http://man.openbsd.org/OpenBSD-current/man1/pkg_add.1) on OpenBSD: + +```bash +pkg_add node +``` + ## openSUSE and SLE Node.js is available in the main repositories under the following packages: diff --git a/locale/uk/download/package-manager.md b/locale/uk/download/package-manager.md index 571182f1030b2..1fcb3471fccae 100755 --- a/locale/uk/download/package-manager.md +++ b/locale/uk/download/package-manager.md @@ -12,9 +12,10 @@ title: Installing Node.js via package manager * [Arch Linux](#arch-linux) * [Debian and Ubuntu based Linux distributions](#debian-and-ubuntu-based-linux-distributions) * [Enterprise Linux and Fedora](#enterprise-linux-and-fedora) -* [FreeBSD and OpenBSD](#freebsd-and-openbsd) +* [FreeBSD](#freebsd) * [Gentoo](#gentoo) * [NetBSD](#netbsd) +* [OpenBSD](#openbsd) * [openSUSE and SLE](#opensuse-and-sle) * [macOS](#macos) * [SmartOS and illumos](#smartos-and-illumos) @@ -215,40 +216,22 @@ Additionally, versions of **CentOS** and **Scientific Linux** corresponding to t * **Fedora 20 (Heisenbug)** (i686/x86_64/armv6hl/armv7hl) * **Fedora 19 (Schrödinger's Cat)** (i686/x86_64/armv7hl) +## FreeBSD -## FreeBSD and OpenBSD +The most recent release of Node.js is available via the [www/node](http://freshports.org/www/node) port. -Node.js is available through the ports system. - -```bash -/usr/ports/www/node -``` - -Development versions are also available using ports - -```bash -cd /usr/ports/www/node-devel/ && make install clean -``` - -Or packages on FreeBSD: - -```bash -pkg_add -r node-devel -``` - -Using [pkg-ng](https://wiki.freebsd.org/pkgng) on FreeBSD +Install a binary package via [pkg](https://www.freebsd.org/cgi/man.cgi?pkg): -```bash +```sh pkg install node ``` -Or the development versions: +Or compile it on your own using [ports](https://www.freebsd.org/cgi/man.cgi?ports): -```bash -pkg install node-devel +```sh +cd /usr/ports/www/node && make install ``` - ## Gentoo Node.js is available in the portage tree. @@ -272,6 +255,19 @@ Or install a binary package (if available for your platform) using pkgin: pkgin -y install nodejs ``` +## OpenBSD + +Node.js is available through the ports system. + +```bash +/usr/ports/lang/node +``` + +Using [pkg_add](http://man.openbsd.org/OpenBSD-current/man1/pkg_add.1) on OpenBSD: + +```bash +pkg_add node +``` ## openSUSE and SLE