Will installing gedit also installs a GUI as a dependency in server?

16,590

Solution 1

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.

Solution 2

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:
16,590

Related videos on Youtube

Anwar
Author by

Anwar

Ubuntu user since 8.04. Computer Addict. Constant changer of Distro & DE. I love Softwares and tweaking/playing with them. Introvert. Friendly. Neither too social, nor completely unsocial. I prefer being alone or with small group of people. I love collecting beautiful fonts and use them in my desktop. I programmed in C, Java, Ruby (my current favorite) and a little Python, JS. I'm not a native English speaker, thus may have ambiguities or mistakes in my answers. Editing is Welcome.

Updated on September 18, 2022

Comments

  • Anwar
    Anwar over 1 year

    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?

  • Admin
    Admin over 12 years
    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.
  • Vicky Dev
    Vicky Dev about 8 years
    Latest installing Gedit doesn't work with apt-get, so how to install it manually by ./configure type thing ?