Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Oct 22 '11 at 13:22

This question came from our site for professional and enthusiast programmers.

are you using some sort of x11 or vnc connection to the box ? – Sirex Aug 20 '12 at 0:55
I'm logging in with straight SSH, but would like to use an X11 connection to run gedit remotely. Much easier to use than vi... – Abe Aug 20 '12 at 13:55
up vote 4 down vote accepted

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.

share|improve this answer
This was the problem. I can see why most EC2 users wouldn't need tools like gedit, but I was surprised how difficult is was to install it. – Abe Aug 20 '12 at 13:57
to be honest, nano, pico, joe, mcedit (part of the mc package), or vi aren't very hard to use. In particular, mcedit you can use the F-keys. I'd highly suggest learning at least one, as needing gedit is going to cripple you on servers. – Sirex Aug 20 '12 at 20:28
I can get around in nano and vi, but sometimes it's really nice to be able to use the mouse and copy-paste. gedit is my fallback tool for those cases. – Abe Sep 18 '12 at 0:25

This works in CentOS so it should be fine in RedHat.

cd /etc/yum.repos.d
vi name.repo

Then inside of that add the following:

name=Description of the repo you're adding
baseurl=URL of the repo
gpgkey=RPM GPD Key

Then do a rpm --import of the GPD key URL and you should be set.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.