如何在 Linux 上安裝 Atom 1.6.0


Atom 是一款免費且開源的文字和原始碼編輯器,適用於 OS X、Linux 和 Windows,支援使用 Node.js 編寫的外掛和嵌入式 Git 控制,由 GitHub 開發。Atom 是一款使用 Web 技術構建的桌面應用程式。大多數擴充套件包都具有自由軟體許可證,並且由社群構建和維護。它擁有簡單直觀的圖形使用者介面和許多有趣的編寫功能——CSS、HTML、JavaScript 和其他 Web 程式語言。除此之外,它還支援宏、自動完成和與檔案管理器整合的分屏功能。

本文介紹了“如何在 Linux 上安裝 Atom 1.6.0”

安裝 Atom

要安裝 Atom,需要 Atom PPA 包,如下所示:

$ sudo add-apt-repository ppa:webupd8team/atom

示例輸出應如下所示:

PPA for Atom text editor: https://atom.io
Now available for both 32bit and 64bit!
More info, report packaging bugs, feedback, etc.: http://www.webupd8.org/2014/05/install-atom-text-editor-in-ubuntu-via-ppa.html
Report non-packaging Atom bugs here: https://github.com/atom/atom/issues
More info: https://launchpad.net/~webupd8team/+archive/ubuntu/atom
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpqguvek6d/secring.gpg' created
gpg: keyring `/tmp/tmpqguvek6d/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpqguvek6d/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:                imported: 1 (RSA: 1)
OK

要更新包索引,請使用以下命令:

$ sudo apt-get update

示例輸出應如下所示:

Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Ign http://extras.ubuntu.com trusty InRelease
Hit http://ppa.launchpad.net trusty InRelease
Ign http://in.archive.ubuntu.com trusty InRelease
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://dl.google.com stable/main amd64 Packages
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://ppa.launchpad.net trusty InRelease
Get:2 http://in.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://extras.ubuntu.com trusty Release
Ign http://ppa.launchpad.net trusty InRelease
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://ppa.launchpad.net trusty InRelease
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Ign http://ppa.launchpad.net trusty InRelease
Hit http://extras.ubuntu.com trusty/main i386 Packages
Ign http://ppa.launchpad.net trusty InRelease
Get:3 http://security.ubuntu.com trusty-security/main Sources [109 kB]
Get:4 http://ppa.launchpad.net trusty InRelease [15.4 kB]
Get:5 http://in.archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Ign http://ppa.launchpad.net trusty InRelease
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Get:6 http://security.ubuntu.com trusty-security/restricted Sources [4,035 B]
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://in.archive.ubuntu.com trusty Release.gpg
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get:7 http://security.ubuntu.com trusty-security/universe Sources [34.0 kB]
Get:8 http://in.archive.ubuntu.com trusty-updates/main Sources [264 kB]
Hit http://ppa.launchpad.net trusty/main i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en_IN
Get:9 http://security.ubuntu.com trusty-security/multiverse Sources [2,750 B]
Hit http://ppa.launchpad.net trusty/main Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://ppa.launchpad.net trusty Release.gpg
Get:10 http://security.ubuntu.com trusty-security/main amd64 Packages [444 kB]
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty Release.gpg
Get:11 http://in.archive.ubuntu.com trusty-updates/restricted Sources [5,352 B]
Ign http://ppa.launchpad.net trusty Release.gpg
Get:12 http://in.archive.ubuntu.com trusty-updates/universe Sources [151 kB]
Get:13 http://ppa.launchpad.net trusty/main amd64 Packages [568 B]
Get:14 http://ppa.launchpad.net trusty/main i386 Packages [570 B]
Get:15 http://ppa.launchpad.net trusty/main Translation-en [299 B]
Hit http://ppa.launchpad.net trusty Release.gpg
Get:16 http://in.archive.ubuntu.com trusty-updates/multiverse Sources [5,946 B]
Hit http://ppa.launchpad.net trusty Release
Get:17 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
....................................................................................

要安裝 Atom,請使用以下命令:

$ sudo apt-get install atom

示例輸出應如下所示:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
   nodejs
The following NEW packages will be installed:
   atom
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 51.1 MB of archives.
After this operation, 51.2 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/atom/ubuntu/ trusty/main atom amd64 1.5.4-1~webupd8~0 [51.1 MB]
................................................

要開啟 Atom,請使用以下命令:

$ atom

示例輸出應如下所示:

要刪除 Atom,請使用以下命令:

$ sudo apt-get remove atom

示例輸出應如下所示:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
   atom
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 51.2 MB disk space will be freed.
Do you want to continue? [Y/n]
   (Reading database ... 229881 files and directories currently installed.)
Removing atom (1.5.4-1~webupd8~0) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
..................................................

恭喜!現在您已經知道“如何在 Linux 上安裝 Atom 1.6.0”了。我們將在下一篇文章中學習更多關於這些命令型別的知識。繼續關注!

更新於:2020年1月20日

瀏覽量:281

開啟您的 職業生涯

完成課程獲得認證

開始學習
廣告