Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 214
Lendion Avatar asked Apr 12 '16 19:04

Lendion


People also ask

How do I install packages in Atom?

There are two ways to install packages for Atom, Enter apm install package-name on your terminal. Obviously, the Atom package manager, apm , must be installed (you can enter apm to verify installation). Open Atom, go to edit > preferences > install and search for the package you wish to install.

How do I open Atom in package manager?

Open up the Settings View using Ctrl+, , click on the "Install" tab and type your search query into the box under Install Packages. The packages listed here have been published to https://atom.io/packages which is the official registry for Atom packages.

How do I download script package in Atom?

Click File�SettingsClick Install. Type Script in the text window and click Install (blue button that says Install). Atom will go out and get this package and install it for you. Click Install.


1 Answers

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.

like image 191
Richard Slater Avatar answered Sep 22 '22 07:09

Richard Slater