# How to install a later version of emacs?

**URL:** <https://forums.rockylinux.org/t/how-to-install-a-later-version-of-emacs/6832>\
**Category:** Rocky Linux Help & Support\
**Created:** [August 2, 2022, 7:27pm UTC](https://forums.rockylinux.org/t/how-to-install-a-later-version-of-emacs/6832 "2022-08-02T19:27:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RL1000](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RL1000](https://forums.rockylinux.org/u/RL1000)\
**Post date:** [August 2, 2022, 7:27pm UTC](https://forums.rockylinux.org/t/how-to-install-a-later-version-of-emacs/6832/1 "2022-08-02T19:27:33Z")

</div>

Hi I am using Rocky 8.6 and have emacs 26.1 installed.  
I need to install a later version, preferably 28.  
I could use flathub but the emacs version in flathub is not officially supported by emacs I dont think  
I could download emacs and make but I do not understand that process, and still tried it and was told i am missing a C compiler, etc.  
So I am hoping to get a later version of emacs from maybe a RHEL repo etc.  
Is this possible?  
Is there any other way to get a later version of emacs?  
Thanks ahead of time

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [August 2, 2022, 8:36pm UTC](https://forums.rockylinux.org/t/how-to-install-a-later-version-of-emacs/6832/2 "2022-08-02T20:36:10Z")

</div>

> [@RL1000](#):
>
> I could download emacs and make but I do not understand that process, and still tried it and was told i am missing a C compiler, etc.

There are actually multiple versions of GCC (a C compiler, etc) available in Rocky. They have to be installed though.

There is a _dnf group_ “Development Tools”. One can see defined groups with `dnf --hidden group list`  
There are also more recent GCC and “gcc toolsets”. See `dnf list gcc-toolset\*`  
The latter do use _Software Collection_ style, the `scl` utility, IIRC.

When you run “configure” and “make”, do it as regular account. Configure a prefix that you can write to, so that even the “make install” won’t require ‘sudo’.

Plan A is to take _source package_ (\*.src.rpm) from, say Fedora and run `mock --rebuild name_of.src.rpm`  
(You have to install the ‘mock’ from EPEL first and add your regular account to group ‘mock’.)  
That may or may not work, but if it does, it will give you RPM-package to install.

Rather than run mock on your machine, one can do it on _Copr_ servers too. That yields “a repo on the net”.  
Some have already done so: [kiso49j/emacs-pretest Copr](https://copr.fedorainfracloud.org/coprs/kiso49j/emacs-pretest/)

However, are you absolutely certain that you need something else than the _Emacs_ that Rocky has?

---

<div class="post-metadata">

**Author:** ![RL1000](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@RL1000](https://forums.rockylinux.org/u/RL1000)\
**Post date:** [August 2, 2022, 11:49pm UTC](https://forums.rockylinux.org/t/how-to-install-a-later-version-of-emacs/6832/3 "2022-08-02T23:49:17Z")

</div>

@jlehtone  
Thank you very much for taking the time to help out and share your knowledge.  
I am just a home user of Rocky Linux and so not a systems admin level person but I will go thru the steps you describe.

> However, are you absolutely certain that you need something else than the Emacs that Rocky has?

I use org mode in emacs and it has a dynamic tag list generation and selection feature that does not seem to work properly in version 26.1 but does in 28.1

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:41am UTC](https://forums.rockylinux.org/t/how-to-install-a-later-version-of-emacs/6832/5 "2023-08-25T03:41:50Z")

</div>


