Answers are out of order:
(2) - oops , you are correct. What you want is:
emacs -Q -batch -eval "(progn (require 'package)
(package-initialize) (package-refresh-contents) (package-install
'org))"
(1) - you have 2 copies of emacs installed on your mac probably one
in /usr/bin/emacs . How did you install the gui version? If
Homebrew, then the other is in /usr/local/bin/emacs. If EmacsForOSX
then, if I remember correctly, it is in /Applications/Emacs.app which
is really just a folder and which contains in it Emacs the actual
emacs program to run. In any case, just replace emacs in the above
command line with the full path to the emacs you are using, like
this:
/usr/local/bin/emacs -Q -batch -eval "(progn (require 'package)
(package-initialize) (package-refresh-contents) (package-install
'org))"
or this
/Applications/Emacs.app/emacs -Q -batch -eval "(progn (require
'package) (package-initialize) (package-refresh-contents)
(package-install 'org))"
(3) yes - start a fresh emacs and don't load your init.el file,
using the -Q option, like this
/Applications/Emacs.app/emacs -Q
And then don't load any .org files!!! Go directly to the package
manager and refresh your org installation like any other package.
~ address@hidden
________________________________________ From: Maria Shinoto
<address@hidden> Sent: Monday, August 15, 2016 6:06 PM To: Cook,
Malcolm Subject: Re: [O] How to safely update from ver. 8.2.10 to
8.3.x
Hi,
so, it was good that I asked, thanks for your advice.
I got the idea, but there are two questions left. I prefer simple
org since I am a beginner and want to start with the standards.
emacs -Q -batch -eval "(progn (require 'package) (add-to-list
'package-archives '(\"org\" . \"http://orgmode.org/elpa/\"))
(package-initialize) (package-refresh-contents) (package-install
'org-plus-contrib))"
Note: I use org-plus-contrib from melpa instead of org. If you
want just org, you could simply:
emacs -Q -batch -eval "(progn (require 'package)
(package-initialize) (package-refresh-contents) (package-install
'org-plus-contrib))"
(1) When I check my emacs version in the Terminal (running Mac OS X
10.11), I get version "GNU Emacs 22.1.1", while asking from the GUI
shows version 24.5 (9.0). I do not understand why this can happen,
how these are separated and how they influence each other.
Furthermore, if they are separate, how should an installation from
the Terminal influence the situation in the GUI?
(2) Your second script is different, but it still deals with
"org-plus-contrib". Could you verify the script so that I can be
sure that I install the right org-mode version?
(3) Is there a way to safely install the org-mode package from the
GUI package manager? This would be easiest, since I intend to go on
with the GUI emacs. In other words, I am looking for a way to start
the GUI without org-mode loaded (similar to "emacs -Q" in the
Terminal).
Thanks again, Maria