PDA

View Full Version : Package Selection while installing



panther
09-02-2003, 07:59 PM
Hey guys!

I was wondering is there a way to not install some packages of Knoppix while doing a hdd install?

Like Gnome, and all those other X window managers, I don't need them?

How can I "not" install gnome while hdd installing Knoppix?

Or can I just someway uninstall them after a full install?
If yes, how?

Thanks a lot! 8)

Superstoned
09-02-2003, 08:11 PM
It is not possible not to install some of them (btw gnome is not on the knoppix-cd) but you can uninstall.

Just type in in a root-console:


apt-get remove (packetname you want to remove)

you can also (if you have an internetconnection) first do an


apt-get install synaptic

then you can start synaptic, which is a graphical packetmanager, by


synaptic

on the commandline, or choose it in the kde-menu (dunno where it is normally installed)

and use that for installing, and uninstalling packages you dont want. but be a bit carefull, although apt-get will solve most problems...

remember, if you want to remove a package, apt-get (and synaptic) will check the dependency's. some might be quite huge... (if you want to remove kdebase3, for example, whole kde will be removed and some 215meg will be freed... so, in that case, don't click 'yes' ;))

panther
09-02-2003, 08:34 PM
Ok then!

Thanks alot!
At least I can get those other WMs like icewm, etc...
and other programs out of the way =)

Oh and another question, which probably everybody knows the answer but I don't =) : how can I see the package list that I just updated using :

apt-get update

is there something like "apt view" ??

Thanks a lot!

Superstoned
09-02-2003, 09:56 PM
apt-get update
doesnt update your software, but only the list of available software on the web. you have to perform an

apt-get upgrade
to actually upgrade your packages.
and you'll be told what will be/is upgraded...

Dave_Bechtel
09-03-2003, 06:06 AM
' dpkg -l | less ' (That's dash L PIPE less.) You can see the list of packages that have been updated (as long as you don't do apt-get clean) by ' ls -l /var/cache/apt/archives '.

--Here is a helpful script I run to get rid of certain packages after a fresh install - you should check it 1st to make sure it's not getting rid of things you WANT. Save it in /usr/local/bin and chmod +x it, and run as root.
#BEGIN knx-freshinstall-purgedebs

#!/bin/bash

function deldeb
{
echo " --- Deleting: $1"
apt-get remove --purge --assume-yes $1
}

# Get rid of default Knoppix pkgs we don't need
deldeb emacs*

##deldeb gnome-bin
##deldeb gnome-desktop-*
##deldeb gnome-games-locale
##deldeb gnome-*
##deldeb docbook*

deldeb amanda-*

deldeb amor
deldeb cervisia
deldeb dump
deldeb falconseye*
deldeb festival
deldeb freeciv*
deldeb frotz
deldeb gimp1.*
deldeb gphoto2
#deldeb ircii
deldeb isdn*
deldeb jpilot*
deldeb kde-i18n*
deldeb larswm
deldeb lincity*

#Lopster no longer installed
##deldeb openoffice*
##deldeb pcmcia*

deldeb psi
deldeb qcad
deldeb rosegarden
deldeb scantv
deldeb tipptrainer
deldeb bochs*
deldeb chromium*
deldeb foomatic*
# (14MB)

deldeb frozen-bubble*
# (12.5MB)
deldeb fb-music-high
# Frozen-bubble music

deldeb gnocatan*
deldeb gramofile
deldeb mozilla*
# (33 MB - we have opera now)
deldeb nethack*
deldeb pilot-link
deldeb wireless-tools

##Remove all unnec xserver-'*' (1by1)
#xserver-3dlabs 3.3.6-44 X server for 3DLabs GLINT and
#xserver-8514 3.3.6-44 X server for ATI 8514/A-based graphics
#xserver-agx 3.3.6-44 X server for IBM XGA and IIT AGX-based
#xserver-common 4.2.1-4 files and utilities common to all X
#xserver-common 3.3.6-44 files and utilities common to XFree86 3.x
#xserver-i128 3.3.6-44 X server for Number Nine Imagine 128
#xserver-mach32 3.3.6-44 X server for ATI Mach32-based graphics
#xserver-mach64 3.3.6-44 X server for ATI Mach64-based graphics
#xserver-mach8 3.3.6-44 X server for ATI Mach8-based graphics
#xserver-p9000 3.3.6-44 X server for Weitek P9000-based graphics
#xserver-s3 3.3.6-44 X server for S3 chipset-based graphics
#xserver-s3v 3.3.6-44 X server for S3 ViRGE and ViRGE/VX-based
#xserver-svga 3.3.6-44 X server for SVGA graphics cards
#xserver-vga16 3.3.6-44 X server for VGA graphics cards
#xserver-w32 3.3.6-44 X server for Tseng ET4000/W32 and
#xserver-xfree8 4.2.1-4 the XFree86 X server
deldeb xserver-3dlabs
deldeb xserver-8514
deldeb xserver-agx
deldeb xserver-i128
deldeb xserver-mach32
deldeb xserver-mach64
deldeb xserver-mach8
deldeb xserver-p9000
deldeb xserver-s3
deldeb xserver-s3v
deldeb xserver-w32

deldeb ace-of-penguins
deldeb asc
# (12MB)
deldeb autoconf2.13
# (obsolete)
deldeb dc
# (reversepolishcalc)
deldeb ettercap
##deldeb gaim*
# (2.5MB)
deldeb gpsdrive
deldeb imaze
deldeb lde
deldeb radio
deldeb rocks-n-diamonds
# (8.3MB!)
deldeb unp
deldeb unzoo
deldeb unarj
deldeb v4lconf
deldeb vgabios
deldeb xdaliclock
deldeb pcscd

deldeb slrn
deldeb cdrdao*
deldeb gcdmaster*

# More stuff, added 2003.0606 (this is from purgedebs2)
deldeb airsnort
deldeb arts
deldeb atitvout
deldeb audacity
deldeb brltty
deldeb configure-xawtv
deldeb dash
# Some kind of shell

deldeb dillo
deldeb emacs21-common
deldeb emacsen-common
deldeb enigma
# Game

deldeb fluxbox
# Win mgr

deldeb gocr
# cmdline OCR
deldeb gtans
# Game
deldeb locales
deldeb s3switch
deldeb scribus
# Desktop pub


# Moved to end due to prompt (remove mysql add-in)
deldeb apache*




Ok then!

Thanks alot!
At least I can get those other WMs like icewm, etc...
and other programs out of the way =)

Oh and another question, which probably everybody knows the answer but I don't =) : how can I see the package list that I just updated using :

apt-get update

is there something like "apt view" ??

Thanks a lot!

Superstoned
09-03-2003, 09:09 AM
tnx, dave, this script is extremely usefull. I guess I have to copy tha whole into an .sh and execute it, after edit?

grtz

Superstoned
09-03-2003, 09:09 AM
btw - where to find it, does it have a homepage, any mantainers?

Dave_Bechtel
09-03-2003, 08:54 PM
> Save it in /usr/local/bin and chmod +x it, and run as root.
#BEGIN knx-freshinstall-purgedebs

--You can save it as the name above, or rename it to anything you want. When you chmod +x it, there doesn't have to be a .sh extension and you don't have to type ' bash ' in front of it. Saving it in /usr/local/bin means it's in your $PATH already as well, and will show up if you do a ' whereis ' on it.


tnx, dave, this script is extremely usefull. I guess I have to copy tha whole into an .sh and execute it, after edit?

grtz

Dave_Bechtel
09-03-2003, 08:57 PM
--Well, I created it 8) Right now it doesn't have a homepage, but I should prolly update my Linuxtips page and link to it.


btw - where to find it, does it have a homepage, any mantainers?

panther
09-05-2003, 11:07 AM
Hi guys!

I'm trying to use Dave_Bechtel's script but I can't
please help!

I logged on as root
I saved the code as "uninstall.sh" in my usr/local/bin,
then I did a chmod +x uninstall.sh
then when I type in "uninstall.sh" nothing happens?!

what am I doing wrong?

Thanks a lot!

veuf
09-05-2003, 03:00 PM
Try "./uninstall.sh"

aay
09-05-2003, 06:07 PM
Dave's script is quite handy.

I found another approach to automate this which people can read about here:

http://gnubox.dyndns.org:8080/~sunil/knoppixtweak.php

It's allways nice to have several ways to get the job done.

Dave_Bechtel
09-05-2003, 09:36 PM
' echo $PATH ' - /usr/local/bin should be in there. If not, you have to ' /usr/local/bin/uninstall.sh ' (preface it with the path.)

' ls -l /usr/local/bin ' - the file permissions on the left should have an 'x' in them, otherwise the chmod didn't take:

-rwxrwxr-x



Hi guys!

I'm trying to use Dave_Bechtel's script but I can't
please help!

I logged on as root
I saved the code as "uninstall.sh" in my usr/local/bin,
then I did a chmod +x uninstall.sh
then when I type in "uninstall.sh" nothing happens?!

what am I doing wrong?

Thanks a lot!