LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   apt how to prevent installation of a package (https://www.linuxquestions.org/questions/debian-26/apt-how-to-prevent-installation-of-a-package-672797/)

mariogarcia 09-27-2008 05:27 PM

apt how to prevent installation of a package
 
Hello I want to install gnome but i don't want to install gdm.

apt-get install gnome

installs gdm.

how can I prevent gdm to be installed. I guess the solution is apt pinning but i can't find out the exact way to do it.

if someone has a way, I will be very grateful.

thank you.

amani 09-27-2008 05:53 PM

If you do not install gdm at all, then gnome will not get installed...that is it. You need to compile from sources.

farslayer 09-27-2008 06:45 PM

The trick is simple really, gnome installs gnome-desktop-environment which in turn installs gdm doue to the dependencies on thse packages.

so the answer is, do not install gnome or gnome-desktop-environment

install gnome-core and the other gnome utilities you want.
it will take longer for you to add one at a time to get what you want, but it will work.

here are the various packages and the dependencies they install. you can cherrypick from the dependencies to get themes, utilities, games, etc..

http://packages.debian.org/etch/gnome-core
http://packages.debian.org/etch/gnome
http://packages.debian.org/etch/gnom...op-environment

rickh 09-27-2008 08:25 PM

Quote:

install gnome-core and the other gnome utilities you want.
it will take longer for you to add one at a time to get what you want, but it will work.
Not only will it work, you'll be doing it "right." ... The Debian Way.

j.todd 09-27-2008 10:43 PM

Use aptitude install -R gnome-core

mariogarcia 09-28-2008 04:57 AM

my aim is that when i start the computer I don't want gdm to show up i want to be left in command line and do startx whenever i feel like. most of the time i don't have to launch x to do what i need.
I tried to renaming the rc3.d scripts but it didn't seem to work.

thank you for your help.

rickh 09-28-2008 08:52 AM

Quote:

my aim is that when i start the computer I don't want gdm to show up
If that's what you want, why didn't you ask that? sysv-rc-conf should take care of it.

farslayer 09-28-2008 10:14 AM

absolutely I just install gnome then set gdm to not start at boot time. a simple startx gets me into gnome. same method rickh mentioned.

Telemachos 09-29-2008 11:19 AM

If you really never want gdm, it's probably cleaner not to install it (rather than to install it and then shut it off with sysv-rc-conf). Installing the gnome-core package is a good way to do this. As far as I can tell, gnome-core doesn't include nor recommend gdm. That is, you don't even need to use the -R flag (= without recommended packages) in order to install it and keep gdm off your system.

This command would remove the monster meta-package gnome and replace it with the gnome-core base, all in one go:
Code:

aptitude purge gnome gnome-core+
After that you may find that you need to install a few packages to supplement gnome-core individually, but it's worth it to keep all the cruft off your system.


All times are GMT -5. The time now is 02:22 PM.