Linuxには人気のあるテキストエディタがいくつかあり、リストにあるのはアトムです。 Atomは、Electron上に構築され、によって開発された高度なオープンソーステキストおよびソースコードエディタです。 GitHub。
Atomは、OS X、Windows、またはLinuxで動作するマルチプラットフォームの編集ツールです。 これは、スマートオートコンプリート、ファイルシステムブラウザ、およびAtomインターフェイスを複数のペインに分割することをサポートしているため、プログラマーにとって最適なツールです。 ファイルまたはすべてのプロジェクトの検索/置換は、このツールのもう1つの優れた機能です。
この記事では、Ubuntu 18.04、Centos 7、ArchLinuxにatomをインストールする方法を紹介します。
1)Atomをダウンロードする
Atomは、パッケージとして、またはソースからダウンロードできます。 実際、最新の安定バージョンは 1.27.0 そしてその beta バージョンは 1.28.0 あなたに直接適したバージョンを探すことができます GitHubサイト
Ubuntu 18.04では、次のようにダウンロードできます。
# wget https://github.com/atom/atom/releases/download/v1.27.0/atom-amd64.deb
--2018-05-16 02:05:48-- https://github.com/atom/atom/releases/download/v1.27.0/atom-amd64.deb
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
以下のようにcentos7で
# wget https://github.com/atom/atom/releases/download/v1.27.0/atom.x86_64.rpm
--2018-05-16 02:09:07-- https://github.com/atom/atom/releases/download/v1.27.0/atom.x86_64.rpm
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
2)Atomをインストールします
アトムをダウンロードしたので、インストールできます
a) Arch Linux2018の場合
Arch Linux 2018では、atomはpacmanコマンドを介して直接ダウンロードできます
# pacman -Sy atom
:: Synchronizing package databases...
archlinuxfr is up to date
core is up to date
extra is up to date
community is up to date
resolving dependencies...
....
....
:: Proceed with installation? [Y/n] y
b) Ubuntu18.04の場合
debパッケージからインストール
debパッケージをダウンロードしたフォルダーに移動し、dpkgコマンドを使用します
# dpkg -i atom-amd64.deb
(Reading database ... 134620 files and directories currently installed.)
Preparing to unpack atom-amd64.deb ...
Unpacking atom (1.27.0) over (1.27.0) ...
Setting up atom (1.27.0) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
スナップからインストール
Ubuntu18.04にsnap経由でatomをインストールすることもできます。 まず、をインストールする必要があります スナップ パッケージ
# apt install snapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gconf-service gconf-service-backend gconf2 gconf2-common libgconf-2-4
libpython-stdlib python python-minimal python2.7 python2.7-minimal
これで、snapを介してatomをインストールできます。 この記事を書いているときに利用可能なバージョンのatomは、スナップであることに注意してください。 1.26.1
# snap install --classic atom
Download snap "atom" (150) from channel "stable" 88% 175kB/s 1m41s
atom 1.26.1 from 'snapcrafters' installed
c) Centos7の場合
Centos 7では、いくつかの依存関係をインストールする必要があるため、yumコマンドを使用して、以前にダウンロードした.rpmパッケージをインストールする必要があります。
# yum install atom.x86_64.rpm
Loaded plugins: fastestmirror
Examining atom.x86_64.rpm: atom-1.27.0-0.1.x86_64
Marking atom.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package atom.x86_64 0:1.27.0-0.1 will be installed
--> Processing Dependency: lsb-core-noarch for package: atom-1.27.0-0.1.x86_64
...
...
Total size: 506 M
Total download size: 3.1 M
Installed size: 511 M
Is this ok [y/d/N]: y
3)起動アトム
アトムがインストールされたので、起動できます
これで、アトムを選択して使用を開始できます
これでatomがインストールされたので、このツールが提供する各機能を試すことができます。
また読む:
- AMP-Linuxターミナル用のフル機能のテキストエディタ
- Suplemon-マルチカーソルをサポートする最新のCLIテキストエディタ
- Linuxの世界で最高のHTMLエディター