Author Topic: Debian 3.1 bloated my NAT-box  (Read 3036 times)

ksym

  • Member
  • **
  • Posts: 65
  • Kudos: 30
Debian 3.1 bloated my NAT-box
« on: 8 July 2005, 13:49 »
I just dist-upgraded my Debian 3.0 distro to Debian 3.1,
and the dist-upgraded happened to install all kinds of
useless components (like gnome and kde runtimes, as well
as the X-server).

Do you people have any good spells i could cast to
drive out the "uninvited demons"? =)

A series of dpkg -r or aptitude -commands wanted.
I mean, i want to get rid of ALL gnome, kde and X-server
components.

Currently i have only 10 M free disk space left,
utterly frustrating ...

And yes, i am a lazy bastard who can't write in engliszh.

Thanks beforehand.
People are stupid.
So: All Operating Systems suck because the people who make them are mostly retards.
-- My piece of Neo-Zen Wisdom

Refalm

  • Administrator
  • Member
  • ***
  • Posts: 5,183
  • Kudos: 704
  • Sjembek!
    • RADIOKNOP
Re: Debian 3.1 bloated my NAT-box
« Reply #1 on: 8 July 2005, 13:52 »
What is your primary language?

Doesn't Debian have that apt stuff to manage packages?

ksym

  • Member
  • **
  • Posts: 65
  • Kudos: 30
Re: Debian 3.1 bloated my NAT-box
« Reply #2 on: 8 July 2005, 14:00 »
Quote from: Refalm
What is your primary language?

Doesn't Debian have that apt stuff to manage packages?

My primary language is Finnish.

And yes, apt is teh package management for Debian, but
afaik I would need to remove the un-needed CRAP
manually. That would take time, since there are now about
60 packages that i do not need.

And i am not that good in regexp/command-line script
coding ... so i'm just asking you gurus for some help
in this one.

Like i said, i am really lazy ;)
People are stupid.
So: All Operating Systems suck because the people who make them are mostly retards.
-- My piece of Neo-Zen Wisdom

muzzy

  • Member
  • **
  • Posts: 391
  • Kudos: 409
    • http://muzzy.net/
Re: Debian 3.1 bloated my NAT-box
« Reply #3 on: 8 July 2005, 16:25 »
so lazy that you'll post here about your own incompetence to administrate your os of choice? instead of just administrating it? it's your damn system, you know what packages you need, nobody else does. clean it up yourself already. pffft.

solemnwarning

  • Member
  • **
  • Posts: 747
  • Kudos: 338
    • http://www.solemnwarning.net
Re: Debian 3.1 bloated my NAT-box
« Reply #4 on: 8 July 2005, 16:47 »
Code: [Select]
#!/usr/bin/perl
#Get rid of crap script
#By solemnwarning

$remove_list_e = (-e "/root/.remove_script") ? "exists" : "absent";
if($remove_list_e eq "absent") {
  print "Removing Gnome, please wait........\n";
  system("/usr/bin/apt-get --purge remove gnome");
  print "Removing KDE, please wait........\n";
  system("/usr/bin/apt-get --purge remove kde");
  print "Removing X, please wait........\n";
  system("/usr/bin/apt-get --purge remove x-window-system");
  open(TXT, ">/root/.remove_script");
  print TXT "Done x, gnome, kde";
  close(TXT);
}

$custom_list_e = (-e "/root/remove.txt") ? "exists" : "absent";
if($custom_list_e eq "exists") {
  print "Found a custom remove script, removing packages on list\n";
  open(TXT, "  @remove = ;
  close(TXT);
  foreach $line(@remove) {
print "Removing $line, please wait........\n";
system("/usr/bin/apt-get --purge remove $line");
  }
  print "Finished removing packages on list, deleting list........\n";
  system("/bin/rm -f /root/remove.txt");
}else{
  print "No custom remove script found, skipping custom script\n";
}

print "Done!\n";

i had same problem on my router so i made a perl script for it

make a list of the packages u want removed and save it as /root/remove.txt put 1 package per line, eg:

gimp
xchat
mozilla-firefox
ect

dont put x-window-system, gnome or kde on list, these will automaticly be removed
-----BEGIN GEEK CODE BLOCK-----
 Version: 3.1
 GCS/CM d- s+:+ a--- C++ UL++++>$ P+ L+++ !E W++ !N !o !K-- w !O !M !V PS+ PE- !Y !PGP !t !5 !X !R tv b+ DI+ !D G e- h !r y-
 ------END GEEK CODE BLOCK------

skyman8081

  • VIP
  • Member
  • ***
  • Posts: 910
  • Kudos: 187
    • http://sauron.game-host.org/
Re: Debian 3.1 bloated my NAT-box
« Reply #5 on: 8 July 2005, 19:46 »
wow... I knew EMACS took up a lot of space, but WOW!
2 motherfuckers have sigged me so far.  Fuck yeah!


WMD

  • Global Moderator
  • Member
  • ***
  • Posts: 2,525
  • Kudos: 391
    • http://www.dognoodle99.cjb.net
Re: Debian 3.1 bloated my NAT-box
« Reply #6 on: 8 July 2005, 21:42 »
Eh, just do "apt-get remove xfree86" and it should remove all the dependencies (KDE, Gnome, etc.)
My BSOD gallery
"Yes there's nothing wrong with going around being rude and selfish, killing people and fucking married women, but being childish is a cardinal sin around these parts." -Aloone_Jonez

muzzy

  • Member
  • **
  • Posts: 391
  • Kudos: 409
    • http://muzzy.net/
Re: Debian 3.1 bloated my NAT-box
« Reply #7 on: 8 July 2005, 22:59 »
Quote from: solemnwarning
i had same problem on my router so i made a perl script for it


Geez. You've never heard of xargs, have you?

ksym

  • Member
  • **
  • Posts: 65
  • Kudos: 30
Re: Debian 3.1 bloated my NAT-box
« Reply #8 on: 9 July 2005, 02:47 »
Quote from: muzzy
so lazy that you'll post here about your own incompetence to administrate your os of choice? instead of just administrating it? it's your damn system, you know what packages you need, nobody else does. clean it up yourself already. pffft.

Just like I said:
I am a lazy bastard who can't write in english.
I am so fucking lazy you can never even possibly imagine!
Embrace me, I am The GOD of utter nonsense! Ph33r!
So STFU and go enjoy on your daily portion of
Microsoft/BSD/BeOS/whateverOS fanfiction.

It's not like I would be a retarded fuck who answers to
people's unpolite replies with equal level of
unpoliteness ... I just like to make myself look like
a clown.
People are stupid.
So: All Operating Systems suck because the people who make them are mostly retards.
-- My piece of Neo-Zen Wisdom

ksym

  • Member
  • **
  • Posts: 65
  • Kudos: 30
Re: Debian 3.1 bloated my NAT-box
« Reply #9 on: 9 July 2005, 02:50 »
Quote from: solemnwarning
i had same problem on my router so i made a perl script for it

make a list of the packages u want removed and save it as /root/remove.txt put 1 package per line, eg:

gimp
xchat
mozilla-firefox
ect

dont put x-window-system, gnome or kde on list, these will automaticly be removed

Thanks dude! You really saved my day :)
It is really nice to see there are helpful and polite
hackers in the net these days ...

Well i'm off to tune my NAT-box ...
People are stupid.
So: All Operating Systems suck because the people who make them are mostly retards.
-- My piece of Neo-Zen Wisdom

Orethrius

  • Member
  • **
  • Posts: 1,783
  • Kudos: 982
Re: Debian 3.1 bloated my NAT-box
« Reply #10 on: 9 July 2005, 03:32 »
Quote from: muzzy
so lazy that you'll post here about your own incompetence to administrate your os of choice? instead of just administrating it? it's your damn system, you know what packages you need, nobody else does. clean it up yourself already. pffft.

Seriously, go back to WinBBS where they value members that browbeat others instead of helping them.  Actually, that's not entirely true; I'm pretty sure they'd have you IP-banned in a day there, about the time that you told somebody who accidentally left file sharing enabled to fuck off.

Proudly posted from a Gentoo Linux system.

Quote from: Calum
even if you're renting you've got more rights than if you're using windows.

System Vitals

toadlife

  • Member
  • **
  • Posts: 730
  • Kudos: 376
    • http://toadlife.net
Re: Debian 3.1 bloated my NAT-box
« Reply #11 on: 9 July 2005, 08:12 »
This is why I use FreeBSD
:)

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Debian 3.1 bloated my NAT-box
« Reply #12 on: 9 July 2005, 09:24 »
Quote from: toadlife
This is why I use FreeBSD
Erm.
What is why you use FreeBSD?
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.

toadlife

  • Member
  • **
  • Posts: 730
  • Kudos: 376
    • http://toadlife.net
Re: Debian 3.1 bloated my NAT-box
« Reply #13 on: 9 July 2005, 11:52 »
Quote from: piratePenguin
Erm.
What is why you use FreeBSD?

I never have to worry about it "bloating my NAT box". :)
:)

piratePenguin

  • VIP
  • Member
  • ***
  • Posts: 3,027
  • Kudos: 775
    • http://piratepenguin.is-a-geek.com/~declan/
Re: Debian 3.1 bloated my NAT-box
« Reply #14 on: 9 July 2005, 12:46 »
Quote from: toadlife
I never have to worry about it "bloating my NAT box". :)
Oh heh.
I thought you said it in reply to Orethrius/muzzy.
"What you share with the world is what it keeps of you."
 - Noah And The Whale: Give a little love



a poem by my computer, Macintosh Vigilante
Macintosh amends a damned around the requested typewriter. Macintosh urges a scarce design. Macintosh postulates an autobiography. Macintosh tolls the solo variant. Why does a winter audience delay macintosh? The maker tosses macintosh. Beneath female suffers a double scum. How will a rat cube the heavier cricket? Macintosh calls a method. Can macintosh nest opposite the headache? Macintosh ties the wrong fairy. When can macintosh stem the land gang? Female aborts underneath macintosh. Inside macintosh waffles female. Next to macintosh worries a well.