Skip to content

Commit

Permalink
Update FreeBSD installation instructions (#1658)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
0mp authored and Milos Jevtovic committed May 21, 2018
1 parent 2581592 commit 865438d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 65 deletions.
62 changes: 23 additions & 39 deletions locale/en/download/package-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
48 changes: 22 additions & 26 deletions locale/uk/download/package-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand All @@ -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

Expand Down

0 comments on commit 865438d

Please sign in to comment.