How to install gedit using yum

Abe asked:

I’m trying to install gedit on an Amazon EC2 instance running Redhat 4.4.4-13. I thought it would be as easy as

sudo yum install gedit

But that just gives me:

Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
amzn-main                                                | 2.1 kB     00:00     
amzn-updates                                             | 2.1 kB     00:00     
Setting up Install Process
No package gedit available.
Error: Nothing to do

Trying “yum repolist all” gives me this:

repo id                          repo name                        status
amzn-main                        amzn-main-Base                   enabled: 2,463
amzn-main-debuginfo              amzn-main-debuginfo              disabled
amzn-main-nosrc                  amzn-main-nosrc                  disabled
amzn-updates                     amzn-updates-Base                enabled:    86
amzn-updates-debuginfo           amzn-updates-debuginfo           disabled
amzn-updates-nosrc               amzn-updates-nosrc               disabled
repolist: 2,549

So it looks as though this machine doesn’t have any of the usual repositories, including those with gedit. How do I install those? I can’t find any documentation on this.

My answer:

You don’t appear to be running Red Hat, but Amazon Linux. Since this is designed to be a server instance, they may have chosen not to provide desktop tools such as gedit.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.