LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-27-2008, 05:27 PM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
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.
 
Old 09-27-2008, 05:53 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
If you do not install gdm at all, then gnome will not get installed...that is it. You need to compile from sources.
 
Old 09-27-2008, 06:45 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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
 
Old 09-27-2008, 08:25 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
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.
 
Old 09-27-2008, 10:43 PM   #5
j.todd
Member
 
Registered: Feb 2008
Location: Michigan
Distribution: Debian GNU/Linux Unstable
Posts: 144

Rep: Reputation: 16
Use aptitude install -R gnome-core
 
Old 09-28-2008, 04:57 AM   #6
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Original Poster
Rep: Reputation: 31
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.
 
Old 09-28-2008, 08:52 AM   #7
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
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.
 
Old 09-28-2008, 10:14 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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.
 
Old 09-29-2008, 11:19 AM   #9
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent strip when building an RPM package sidra Red Hat 7 10-26-2007 12:48 PM
Prevent apt-get from upgrading a package Jukas Debian 5 05-31-2006 12:04 PM
prevent a package from upgrade kushalkoolwal Debian 2 04-17-2006 08:16 PM
How to prevent a package from being removed? raid517 Debian 3 04-29-2005 10:09 PM
How to prevent the UDP package from being thrown away? fionafhx Linux - Networking 0 12-24-2004 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration