Will installing gedit also installs a GUI as a dependency in server?
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?
2 Answers
You can find what a package depends on using apt-rdepends, install it with Software Center:
Or with terminal:
sudo apt-get install apt-rdependsTo 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 geditThat 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.
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 autoremoveThis 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.
1