Skip to content

Commit b9e97a6

Browse files
authored
Merge pull request #576 from emacs-php/readme-about-os-packages
Add installation from OS packages to README
2 parents ba45a54 + 0ac4ce9 commit b9e97a6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: README.ja.md

+8
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ GNU EmacsでのPHPコーディングを支援するメジャーモードの開
3737

3838
GNU Emacs 24以降では、[package][]機能(または[Cask][])を使って[MELPA][]/[MELPA Stable][]からPHP Modeをインストールできます。
3939

40+
### OSのパッケージマネージャからのインストール
41+
42+
PHP Modeは[いくつかのOSが提供するパッケージシステム](https://repology.org/project/emacs:php-mode/versions)からインストール可能です。これはEmacsにPHPを追加する最も簡単な方法で、ただ `sudo apt-get install elpa-php-mode` で導入できます。
43+
44+
Debian、Ubuntuや派生OSなどでのパッケージ名は[`elpa-php-mode`](https://packages.debian.org/buster/elpa-php-mode)です。これらのパッケージは安定版ですが、PHP Modeの最新版からは遅れているため、最新のPHP機能サポートや性能改善が反映されていない可能性があることに気をつけてください。
45+
46+
また、[Debian 9 (stretch)](https://packages.debian.org/stretch/php-elisp)[Ubuntu 18.10](https://packages.ubuntu.com/cosmic/php-elisp)以前で提供されていた `php-elisp` パッケージは[あまりにも古い](https://github.com/emacs-php/php-mode/issues/430)ので、 **くれぐれもインストールしないでください**
47+
4048
### 手動でインストール
4149

4250
このプロジェクトを `git cline` または、[php-mode releases]からzip/tarアーカイブをダウンロードして展開してください。

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ The current support policy can be found on the [Supported Version] page.
3939

4040
With GNU Emacs 24 or later then you can use its [package][] feature (or [Cask][]) to install PHP Mode from [MELPA][] or [MELPA Stable][].
4141

42+
### Install using OS package system
43+
44+
PHP Mode is available from [package systems provided by several OSs](https://repology.org/project/emacs:php-mode/versions). This is the easiest way to add PHP to Emacs and can be installed with just `sudo apt-get install elpa-php-mode`.
45+
46+
The package name on Debian, Ubuntu, and some derived operating systems is [`elpa-php-mode`](https://packages.debian.org/buster/elpa-php-mode). The packages provided for these operating systems are stable, but since they are behind the latest version of PHP Mode, consider the possibility of not incorporating the latest PHP feature support and performance improvements.
47+
48+
Also, the `php-elisp` package provided by [Debian 9 (stretch)](https://packages.debian.org/stretch/php-elisp) and [Ubuntu 18.10](https://packages.ubuntu.com/cosmic/php-elisp) and earlier is [extremely old](https://github.com/emacs-php/php-mode/issues/430), so **PLEASE DO NOT INSTALL IT**.
49+
4250
### Manual installation
4351

4452
Please `git clone` this project or download and unarchive tar or zip file from [php-mode releases].

0 commit comments

Comments
 (0)