this post was submitted on 13 Jan 2025
6 points (87.5% liked)

Emacs

2281 readers
2 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS
6
submitted 4 days ago* (last edited 3 days ago) by MITM0@lemmy.world to c/emacs@lemmy.ml
 

Okay, so this is probably a stupid question, I use Pop!_OS & the current emacs version is Emacs-27 So, If I had to install the latest one (Emacs-29.1 or even Emacs-30.0.93) what does one have to do, compile it manually ?

Or is there another way ?

top 12 comments
sorted by: hot top controversial new old
[–] Buildout@lemmy.world 2 points 3 days ago (1 children)

Is it possible there are other 3rd party repositories that have a more up to date version than the Pop_OS repos?

[–] MITM0@lemmy.world 1 points 2 days ago

Maybe not, I can't find them

[–] bunitor 3 points 4 days ago (1 children)

i use debian, so i had to do this:

apt build-dep emacs

i assume pop os to be debian-based, so that'll work for you too. this ensures every dependency is available beforehand so you don't get to a scenario where emacs builds successfully, but something basic like gtk support is missing

then you clone emacs and then ./configure && make && make install. i use it for work everyday and it works pretty well

[–] MITM0@lemmy.world 1 points 3 days ago (1 children)

So the sequence is as follows:-

  1. First of all we'll have to do this in Debian
apt build-dep emacs
  1. Next up
git clone https://git.savannah.gnu.org/cgit/emacs.git
  1. Then we do this after navigating to the emacs source code folder
./configure && make && make install

Did I miss anything ??

[–] bunitor 2 points 3 days ago* (last edited 3 days ago)

you might have to set a different --prefix during the ./configure stage if you don't want to install it as root, but other than that, i think this is it. please read the INSTALL file and also the output of ./configure --help

[–] theit8514@lemmy.world 3 points 4 days ago (2 children)

There is a snap package which should be more up-to-date, but I'm not sure I would recommend that for an editor. Compiling from source would be fine, as it will default install into /usr/local and shouldn't affect the existing install. Afterwards you may need to update the link to emacs in your /bin folder (manually or via update alternatives) or add the folder where the new emacs is to your path at the front.

[–] bunitor 1 points 4 days ago

if the snap package is anything like the flatpak, i wouldn't recommend it. the sandboxing gets in the way of a lot of stuff, including compilation, lsp, etc. it was a pain last time i tried it, unfortunately

[–] MITM0@lemmy.world 1 points 4 days ago (1 children)

Where does one get the source code ?

[–] theit8514@lemmy.world 2 points 4 days ago (1 children)
[–] MITM0@lemmy.world 1 points 4 days ago* (last edited 3 days ago)

Along with the PGP-Key, please Since When I tried to download it from the GNU-FTP there was also a PGP-Signature file (I don't know whose signature to import in case of GNU stuff)

[–] Trent@lemmy.ml 2 points 4 days ago

Disclaimer: I don't and have never used Pop.

That said, I've been compiling my own emacs for a few years and it's pretty painless.

[–] EdHamilton@fosstodon.org 1 points 4 days ago

@MITM0 @emacs Hi. you might get a better response if you rewrite this as a question. I thought you were going to tell us how to get the latest Emacs. :). And maybe put a hash for popOS, since the answer might come from that direction. I don't know the answer for popOS. Debian has backported 29.4 to stable and that is new enough for me. If popOS does not have anything newer than what you said, then you could compile it. It isn't that hard. Google for directions.