centos 安装atom 笔记

一、安装atom 

“To install Atom on Linux, you can download a Debian package or RPM package either from themain Atom website or from theAtom project releases page. These packages do not currently have auto-update features, so when you would like to upgrade to a new release of Atom, you will have to repeat this installation process.”

  • Debian and Ubuntu (deb/apt)

To install Atom on Debian, Ubuntu, or related systems:

# Install Atom
sudo dpkg -i atom-amd64.deb

# Install Atom's dependencies if they are missing
sudo apt-get -f install
  • RedHat and CentOS (yum)

To install Atom on CentOS, Oracle Linux, RedHat Enterprise Linux, Scientific Linux or related systems that use the yum package manager:

sudo yum install -y atom.x86_64.rpm
  • Fedora (dnf)

To install the latest release of Atom on Fedora or other systems that use the DNF package manager:

sudo dnf install -y atom.x86_64.rpm
  • SUSE (zypp)

To install the latest release of Atom on openSUSE or other systems that use the Zypp package manager:

sudo zypper in -y atom.x86_64.rpm

二、在centos上安装atom的时候,遇到依赖的问题,解决方法如下:

localinstall 
Is used to install a set of local rpm files. If required the 
enabled repositories will be used to resolve dependencies. Note 
that the install command will do a local install, if given a 
filename. This command is maintained for legacy reasons only.

即yum localinstall可以帮助安装本地rpm包,并解决依赖问题。 
该方法也可以用来解决centos7安装google chrome出现的问题。

三、Centos 设置桌面快捷方式

1、通过rpm包或者yum安装的,centos7默认安装在了/usr/share/applictions里面,复制粘贴到桌面即可
2、通过xx.desktop文件设置快捷方式及图标,如下图:

原文地址:https://www.cnblogs.com/yaohuimo/p/8393882.html