How to install Atom packages offline or when the atom package manager doesn't work?

Lendion picture Lendion · Apr 12, 2016 · Viewed 17.8k times · Source

I have a computer behind a very restrictive proxy server it only allows me to surf the web and download programs it does not allow programs like the Atom text editor to download it's packages.

My question is how do I install them using only browser based downloads?

Answer

Richard Slater picture Richard Slater · Apr 12, 2016

It is certainly possible:

  1. Find the package you want to install, for example the activate-power-mode package.
  2. Click on the Repo button to go to the GitHub repository.
  3. Click Releases towards the top of the UI, then click on the most recent release, 0.4.1 in this case.
  4. Download the source code release in either Zip or GZip depending on your platform.
  5. Extract the content of the archive to a known permanent location, I have chosen:

    C:\Source\Atom
    
  6. Run the following command from your terminal / command prompt (make sure to include quotes around the path):

    apm link "C:\Source\Atom\activate-power-mode-0.4.1"
    
  7. Restart or Reload Ctrl-Alt-R Atom and the package will now be installed.

You can alternatively extract the package directly to your ~/.atom/packages folder however you will have to rename the folder to exactly match the name of the package, additionally uninstalling the package from Atom will delete the files which could be annoying if it is an accidental deletion.