Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 want to use gedit using ssh for file editing on my server. I use nano, but for html and css gedit is better.

Now with sudo apt-get install gedit I get dependencies that are 120mb, that kind seems too big.

So did I just install also a complete user interface because of gedit? I don't need a user interface... What did it also install automatically? Should I've used some other command for installation?

share|improve this question
up vote 5 down vote accepted

You can find what a package depends on using apt-rdepends, install it with Software Center:

Install via the software center

Or with terminal:

sudo apt-get install apt-rdepends

To check what packages depends gedit on (packages that were installed when you did sudo apt-get install gedit) type this after you installed apt-rdepends

sudo apt-rdepends gedit

That will return the list of packages that gedit installed or were already installed and are used by gedit for running.

If you want to use gedit there will be a lot of dependencies that you wont be able to avoid but are necessary for the program to run without faults.

share|improve this answer
Latest installing Gedit doesn't work with apt-get, so how to install it manually by ./configure type thing ? – Vicky Dev Apr 29 at 5:47

You most likely did not actually install X11 or anything like that, however, you probably have lots of GTK+ libs and other related junk on your system. If you change your mind, you can execute the following commands to remove Gedit and its depedencies, without breaking anything else:

sudo apt-get remove gedit
sudo apt-get autoremove

This will remove any packages which apt-get installed automatically and which are no longer needed.

If you want to use something better than nano, try using sftp to download the file, edit it in your editor of choice, and then upload it again. If you have OpenSSH as the SSH server this may be available without reconfiguring anything or installing additional software.

share|improve this answer
u were right. Not very convenient using x11. Anyhow, I uninstalled, and shared folder with samba, so I can edit them like a local folder :) thanks. – Sandro Dzneladze Oct 22 '11 at 10:04

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.