Nice programing

Linux에서 Atom Editor를 업그레이드하는 방법은 무엇입니까?

nicepro 2020. 10. 20. 08:08
반응형

Linux에서 Atom Editor를 업그레이드하는 방법은 무엇입니까?


Linux Ubuntu에서 atom을 업그레이드하는 가장 좋은 방법은 무엇입니까? 공식 문서를 사용하여 atom을 설치합니다.

  git clone https://github.com/atom/atom
  cd atom
  script/build
  sudo script/grunt install

이제 가장 쉬운 방법은 공식 릴리스에서 새 패키지 버전 (.deb 또는 .rpm)을 다운로드하여 이전 버전 위에 설치하는 것 같습니다 : https://github.com/atom/atom/releases


Ubuntu 14.10에서 아톰을 업데이트하기 위해 다음 스크립트를 만들었습니다.

#!/bin/bash
# Update atom from downloaded deb file
rm -f /tmp/atom.deb
curl -L https://atom.io/download/deb > /tmp/atom.deb
dpkg --install /tmp/atom.deb 

echo "***** apm upgrade - to ensure we update all apm packages *****"
apm upgrade --confirm false

exit 0

atom_update 파일은 실행 가능하며 su를 사용하여 호출해야합니다.

sudo ./atom_update

위는 작동하지만 요즘에는 다음을 사용합니다.

sudo add-apt-repository -y ppa:webupd8team/atom
sudo apt -y update
sudo apt -y install atom
apm install \
file-icons \
tabs-to-spaces \
trailing-spaces \
xml-formatter

위의 설정으로

sudo apt -y upgrade

설치된 atom을 최신 버전으로 업데이트합니다. ppa는 일반적으로 최신입니다.


APT 패키지를 사용하면 훨씬 더 쉬워졌습니다.

sudo add-apt-repository ppa:webupd8team/atom
sudo apt update
sudo apt install atom

이제 평소와 같이 업그레이드 / 업그레이드 할 수 있습니다.

sudo apt upgrade

현재 공식 문서는 다른 방법을 권장하는 것 같습니다.

Atom Github 페이지

Debian Linux (Ubuntu)

Atom은 64 비트 Linux 시스템에서만 사용할 수 있습니다.

  1. Atom 릴리스 페이지에서 atom-amd64.deb를 다운로드하십시오.
  2. 다운로드 한 패키지에서 sudo dpkg --install atom-amd64.deb를 실행합니다.
  3. 설치된 atom 명령을 사용하여 Atom을 시작하십시오.

Linux 버전은 현재 자동으로 업데이트되지 않으므로 향후 릴리스로 업그레이드하려면이 단계를 반복해야합니다.

Red Hat Linux (Fedora 21 이하, CentOS, Red Hat)

Atom은 64 비트 Linux 시스템에서만 사용할 수 있습니다.

  1. Atom 릴리스 페이지에서 atom.x86_64.rpm을 다운로드하십시오.
  2. 다운로드 한 패키지에서 sudo yum localinstall atom.x86_64.rpm을 실행하십시오.
  3. 설치된 atom 명령을 사용하여 Atom을 시작하십시오.

Linux 버전은 현재 자동으로 업데이트되지 않으므로 향후 릴리스로 업그레이드하려면이 단계를 반복해야합니다.

Fedora 22 이상

Atom은 64 비트 Linux 시스템에서만 사용할 수 있습니다.

  1. Atom 릴리스 페이지에서 atom.x86_64.rpm을 다운로드하십시오.
  2. 다운로드 한 패키지에서 sudo dnf install ./atom.x86_64.rpm을 실행합니다.
  3. 설치된 atom 명령을 사용하여 Atom을 시작하십시오.

Linux 버전은 현재 자동으로 업데이트되지 않으므로 향후 릴리스로 업그레이드하려면이 단계를 반복해야합니다.


이 글을 쓰는 시점에서 Atom의 최신 릴리스 버전으로 업그레이드하는 가장 좋은 방법은 가장 최근의 태그를 확인하고 빌드하는 것입니다. 특히 처음에 빌드 한 경우 더욱 그렇습니다.

  1. cd atom
  2. git pull
  3. git checkout v0.115.0(또는 최신 릴리스가 무엇이든 : https://github.com/atom/atom/releases )
  4. script/build
  5. sudo script/grunt install

  wget https://atom.io/download/deb -O atom64.deb
  sudo dpkg --install atom64.deb

또는

  wget https://atom.io/download/rpm -O atom64.rpm
  sudo dnf install atom64.rpm

위의 URL은 https://atom-installer.github.com/


현재 선호하는 절차는 Atom 설치-Platform-linux 의 atom 페이지에 설명되어 있습니다.

add-apt-repository상위 답변에서 제안 된 것을 사용하는 경우이 URL이 제안됩니다.

Atom 페이지에 언급 된 apt 저장소 :

curl -sL https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update

당신이 ONN 경우 우분투 당신은 갈 수 우분투 소프트웨어 센터 를 검색 아톰 그냥 클릭 업데이트 . 그럼 완료되었습니다!


관심있는 사람이 있다면 이 목적을 위해 작은 원자 패키지작성했습니다 .

The package is meant to timely inform the user of new versions being available (stable or beta, configurable via settings) and uses GitHub API under the hood. It is platform independent, so it should work with any linux distro, but also with Windows or other systems.

It does not perform the upgrade automatically as I wrote it for my needs and I was not interested in such feature. I may add it in the future should strong interest for it manifest itself, though.

Feedback is welcome, best as tickets on github.


I would add that you should probably clean before updating the build to prevent some nasty errors.

cd atom
git pull
script/clean
script/build
sudo script/grunt install

Ubuntu 14.04 and later

Run these commands to quickly and easily install and upgrade the Atom text editor snap package from the terminal in Ubuntu 14.04 and later (64-bit only).

  • Install Atom text editor:

    sudo apt install snapd  
    sudo snap install --classic atom  
    

    Note that a snap in classic confinement behaves as a traditionally packaged application with full access to the system, and Atom extension packages are installed into the user's home directory.

  • Upgrade Atom text editor:

    sudo snap refresh --classic atom 
    

An easier way is to install the atom-updater-linux from the packages on the atom website.

Go to edit > preferences > install and search for atom-updater-linux

or from the terminal:

apm install atom-updater-linux

This should check for updates after every launch and prompt you to install new updates.


For debian I have created a bash script which does the following:

  • Check with https://api.github.com and dpkg if atom is installed and/or up-to date.
  • Download and install the atom.deb from github if needed.
  • Provide a --beta switch if somebody wants to maintain the beta version as well.

Fell free to use it, it is located here: https://gist.github.com/rumpelsepp/8a953d6c092cbeb043695cfada114bef


Since December 2017 Atom provides official repositories for all major Linux distributions. You can find the latest installation instructions here.


Latest Way is to first install $ apm install atom-updater-linux then simply press Alt+Ctrl+U or go to Help and there is option for check for updates


I upgraded from

Atom : 1.26.1 Electron: 1.7.11 Chrome : 58.0.3029.110 Node : 7.9.0

to

Atom : 1.40.1 Electron: 3.1.10 Chrome : 66.0.3359.181 Node : 10.2.0

I followed these simple steps,

  1. create a file

sudo nano /usr/local/bin/atom-update

  1. copy following snippet and save with Ctrl+o and "enter" and Ctrl+x

your code

#!/bin/bash
wget -q https://github.com/atom/atom/releases/latest -O /tmp/latest
wget --progress=bar -q 'https://github.com'$(cat /tmp/latest | grep -o -E 'href="([^"#]+)atom-amd64.deb"' | cut -d'"' -f2 | sort | uniq) -O /tmp/atom-amd64.deb -q --show-progress
dpkg -i /tmp/atom-amd64.deb
  1. Make it executable

sudo chmod +x /usr/local/bin/atom-update

  1. Run the script to upgrade atom

sudo atom-update

참고URL : https://stackoverflow.com/questions/24741996/how-to-upgrade-atom-editor-on-linux

반응형