LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Remove unwated packages (https://www.linuxquestions.org/questions/debian-26/remove-unwated-packages-563810/)

kushalkoolwal 06-22-2007 04:35 PM

Remove unwated packages
 
Hi,

I just installed a debian minimum system and I am trying to reduce my installation size further. Right now I am at 284 MB and I would like to reduce it by atleast 40-50MBs. Here is the output of dpkg--get-selections:

Code:

adduser                                                install
apt                                                install
apt-utils                                        install
aptitude                                        install
at                                                install
autofs                                                install
base-config                                        deinstall
base-files                                        install
base-passwd                                        install
bash                                                install
bc                                                install
belocs-locales-bin                                deinstall
belocs-locales-data                                deinstall
binutils                                        install
bison                                                install
bsdmainutils                                        install
bsdutils                                        install
bzip2                                                install
console-common                                        install
console-data                                        install
console-tools                                        install
coreutils                                        install
cpio                                                install
cpp                                                install
cpp-3.3                                                install
cpp-4.1                                                install
cramfsprogs                                        install
cron                                                install
dash                                                install
dc                                                install
debconf                                                install
debconf-i18n                                        install
debfoster                                        install
debian-archive-keyring                                install
debianutils                                        install
deborphan                                        install
dhcp-client                                        install
dialog                                                install
diff                                                install
discover                                        install
discover-data                                        install
dmidecode                                        install
dpkg                                                install
dselect                                                install
e2fslibs                                        install
e2fsprogs                                        install
ed                                                install
eject                                                install
exim4-base                                        install
exim4-config                                        install
exim4-daemon-light                                install
fdutils                                                install
file                                                install
findutils                                        install
flex                                                install
ftp                                                install
gcc                                                install
gcc-3.3                                                install
gcc-3.3-base                                        install
gcc-4.1                                                install
gcc-4.1-base                                        install
gettext-base                                        install
gnupg                                                install
gpgv                                                install
grep                                                install
groff-base                                        install
grub                                                install
gzip                                                install
hal                                                deinstall
hdparm                                                install
hostname                                        install
hotplug                                                deinstall
hwinfo                                                install
ifupdown                                        install
info                                                install
initrd-tools                                        install
initscripts                                        install
iptables                                        install
iputils-ping                                        install
klogd                                                install
laptop-detect                                        install
less                                                install
libacl1                                                install
libattr1                                        install
libblkid1                                        install
libbz2-1.0                                        install
libc6                                                install
libc6-dev                                        install
libcap1                                                install
libcomerr2                                        install
libconsole                                        install
libdb4.2                                        install
libdb4.3                                        install
libdb4.4                                        install
libdbus-1-3                                        install
libdevmapper1.02                                install
libdiscover2                                        install
libedit2                                        install
libexpat1                                        install
libgcc1                                                install
libgcrypt11                                        install
libgdbm3                                        install
libglib2.0-0                                        deinstall
libgnutls13                                        install
libgpg-error0                                        install
libgpmg1                                        install
libhal-storage1                                        install
libhal0                                                deinstall
libhal1                                                install
libhd13                                                install
libiw28                                                install
libkrb53                                        install
libldap2                                        install
liblocale-gettext-perl                                install
liblockfile1                                        install
liblzo1                                                install
libmagic1                                        install
libncurses5                                        install
libncursesw5                                        install
libnewt0.51                                        deinstall
libnewt0.52                                        install
libopencdk8                                        install
libpam-modules                                        install
libpam-runtime                                        install
libpam0g                                        install
libpci2                                                install
libpcre3                                        install
libpopt0                                        install
libreadline5                                        install
libsasl2-2                                        install
libselinux1                                        install
libsepol1                                        install
libsigc++-2.0-0c2a                                install
libslang2                                        install
libss2                                                install
libssl0.9.8                                        install
libssp0                                                install
libstdc++6                                        install
libsysfs2                                        install
libtasn1-2                                        deinstall
libtasn1-3                                        install
libtext-charwidth-perl                                install
libtext-iconv-perl                                install
libtext-wrapi18n-perl                                install
libusb-0.1-4                                        install
libuuid1                                        install
libvolume-id0                                        install
libwrap0                                        install
libx11-6                                        deinstall
libxau6                                                deinstall
libxdmcp6                                        deinstall
links                                                install
linux-image-2.6.18-4-686                        install
linux-kernel-headers                                install
localeconf                                        install
localepurge                                        install
locales                                                install
lockfile-progs                                        install
login                                                install
logrotate                                        install
lsb-base                                        install
lsof                                                install
m4                                                install
mailx                                                install
make                                                install
makedev                                                install
man-db                                                install
manpages                                        install
mawk                                                install
mdetect                                                install
mktemp                                                install
module-init-tools                                install
modutils                                        install
mount                                                install
nano                                                install
ncurses-base                                        install
ncurses-bin                                        install
net-tools                                        install
netbase                                                install
netkit-inetd                                        deinstall
nvi                                                install
openbsd-inetd                                        install
openssh-client                                        install
openssh-server                                        install
passwd                                                install
pciutils                                        install
pcmcia-cs                                        install
pcmciautils                                        install
perl-base                                        install
pmount                                                install
procps                                                install
psmisc                                                install
readline-common                                        install
sed                                                install
sharutils                                        install
splashy                                                install
ssh                                                install
sysklogd                                        install
sysv-rc                                                install
sysvinit                                        install
sysvinit-utils                                        install
tar                                                install
tasksel                                                install
tasksel-data                                        install
tcpd                                                install
telnet                                                install
tzdata                                                install
ucf                                                install
udev                                                install
update-inetd                                        install
usbmount                                        install
usbutils                                        install
util-linux                                        install
wget                                                install
whiptail                                        install
wireless-tools                                        install
zlib1g                                                install

Please note that I have already used localepurge, deborphan, debfoster, remove docs folder,etc.

I would now further like to reduce the installation size by removing packages that are unecessary. All I need is to reduce to a basic text base system from which I can connect to Internt and use apt-get to install/remove packages and perform some basic admin functions.

Thanks

AceofSpades19 06-22-2007 04:40 PM

you could just use debian net install, and only install packages form the disk

kushalkoolwal 06-22-2007 04:46 PM

Quote:

Originally Posted by AceofSpades19
you could just use debian net install, and only install packages form the disk


Majority of these packages are from netinstall only.

Thanks

makuyl 06-22-2007 04:52 PM

I don't quite see a question in your post. Anyway, this will list the installed packages by size:
dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n

You could probably remove bison, openbsd-inetd, splashy, telnet, pcmcia-cs and pcmciautils if you don't have a laptop and replace exim with something lighter. Also you might not need both 3.3 and 4.1 gcc versions. Set up your hardware manually and get rid of discover. Do a "apt-get clean". It's a bit difficult really to say what you might not need.

kushalkoolwal 06-22-2007 10:14 PM

Quote:

Originally Posted by makuyl
I don't quite see a question in your post. Anyway, this will list the installed packages by size:
dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n

You could probably remove bison, openbsd-inetd, splashy, telnet, pcmcia-cs and pcmciautils if you don't have a laptop and replace exim with something lighter. Also you might not need both 3.3 and 4.1 gcc versions. Set up your hardware manually and get rid of discover. Do a "apt-get clean". It's a bit difficult really to say what you might not need.

Thanks Makuyl...I will try your suggestions...Basically what I need is a minimal debian system which can fit on a 256 MB Compact Flash device.

Thanks

farslayer 06-22-2007 11:32 PM

Have you looked at the Debian-Live project ?

http://debian-live.alioth.debian.org/
http://wiki.debian.org/DebianLive

the Debian-Live Etch image appears to be around 85 MB

nx5000 06-23-2007 03:11 AM

Debian minimal install is around 100MB using debbootstrap (at least sarge was around 110Mb if I remember, dunno for etch)
Going under is another level of tweaking, you can't remove packages like this, they have to be recompiled or replaced by alternatives. There is embedian project also.

kushalkoolwal 06-25-2007 02:33 PM

Quote:

Originally Posted by nx5000
Debian minimal install is around 100MB using debbootstrap (at least sarge was around 110Mb if I remember, dunno for etch)
Going under is another level of tweaking, you can't remove packages like this, they have to be recompiled or replaced by alternatives. There is embedian project also.

Thanks nx5000. I guess that's what I have been looking for. Do you any pointer/tutorials which explains how to minimally install Debian using debbootstrab as you mentioned in your last post?

Thanks a lot buddy...


All times are GMT -5. The time now is 03:00 PM.