Portál AbcLinuxu, 9. května 2024 05:16


Dotaz: vycisteni debianu

19.1.2008 18:08 x
vycisteni debianu
Přečteno: 1394×
Odpovědět | Admin

Ahoj, potreboval bych vycistit debian od vsech nepotrebnych balicku. Tim myslim opravdu vse, potrebuju pouze nabootovat a odesilat soubory pres ftp a ssh na vzdaleny server. Jeste se potrebuju pripojit pres mobil na internet. Vse ostatni potrebuju dat pryc (vcetne napoved, programu, ... - proste vsechno). Idealni by bylo, kdyby se to veslo do 256MB nebo min a stacilo tomu malo RAM (<=32MB).

Predem dik vsem za rady, sam nevim co presne je v systemu potreba a co ne.
Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

Honza Balák avatar 19.1.2008 18:20 Honza Balák | skóre: 23 | blog: Jaxův linuxový zápisník | Předklášteří
Rozbalit Rozbalit vše Re: vycisteni debianu
Odpovědět | | Sbalit | Link | Blokovat | Admin
Nebude jednodušší a čistší Debian nainstalovat znovu? Zvolit minimální systém a jen doinstalovat potřebné balíčky. Při odinstalaci může nastat dost problémů, může zůstat dost programů nainstalovaných a odinstalace by byla metodou pokus/omyl :-)
<null>
19.1.2008 18:28 x
Rozbalit Rozbalit vše Re: vycisteni debianu
Ja mam minimalni instalaci do ktere jsem jeste nic nedoinstaloval. Ma to 406MB a to se mi zda hodne. Chtel bych to vycistit.
21.1.2008 14:02 Ondrej 'SanTiago' Zajicek
Rozbalit Rozbalit vše Re: vycisteni debianu
Tak to asi nemas minimalni instalaci, ale uz jsi tam neco nainstaloval. Debian Etch ihned po instalaci ma cca 120 MB (po smazani cache baliku z /var/cache/apt/archives/). Pri ruznim mazani neprilis dulezitych veci (dokumentace, locales, timezone data, iconv tabulky, apt seznam dostupnych baliku) se lze dostat na cca 60 MB.
19.1.2008 18:33 diverman | skóre: 32 | blog: život s tučňáčkem
Rozbalit Rozbalit vše Re: vycisteni debianu
Odpovědět | | Sbalit | Link | Blokovat | Admin
hod se vypis 'dpkg -l'
deb http://ftp.cz.debian.org/debian jessie main contrib non-free
19.1.2008 21:15 x
Rozbalit Rozbalit vše Re: vycisteni debianu
$ dpkg -l
Požadované=Neznámé/Instalovat/Odinstalovat/Odstranit/Nechat
| Stav=Ne/Instalován/Konfigurační soubory/Rozbalen/Nezkonfigurován/Nekompletní
| instalace
|/ Chyba?=(nic)/Nechat/Nutná přeinstalace/X=oba problémy (Stav,Chyba: velké písmeno=chyba)
||/ Název                   Verze                           Popis
+++-========================-===============================-============================================
ii  adduser                  3.102                           Add and remove users and groups
ii  apt                      0.6.46.4-0.1                    Advanced front-end for dpkg
ii  apt-utils                0.6.46.4-0.1                    APT utility programs
ii  aptitude                 0.4.4-4                         terminal-based apt frontend
ii  aspell                   0.60.4-4                        GNU Aspell spell-checker
ii  aspell-cs                0.0.20040614.1-1                Czech dictionary for GNU Aspell
ii  base-files               4                               Debian base system miscellaneous files
ii  base-passwd              3.5.11                          Debian base system master password and group
ii  bash                     3.1dfsg-8                       The GNU Bourne Again SHell
ii  bsdmainutils             6.1.6                           collection of more utilities from FreeBSD
ii  bsdutils                 2.12r-19                        Basic utilities from 4.4BSD-Lite
ii  busybox                  1.1.3-4                         Tiny utilities for small and embedded system
ii  console-common           0.7.69                          Basic infrastructure for text console config
ii  console-data             1.01-7                          Keymaps, fonts, charset maps, fallback table
ii  console-tools            0.2.3dbs-65                     Linux console and font utilities
ii  coreutils                5.97-5.3                        The GNU core utilities
ii  cpio                     2.6-17                          GNU cpio -- a program to manage archives of 
ii  cron                     3.0pl1-100                      management of regular background processing
ii  debconf                  1.5.11                          Debian configuration management system
ii  debconf-i18n             1.5.11                          full internationalization support for debcon
ii  debian-archive-keyring   2007.02.19                      GnuPG archive keys of the Debian archive
ii  debianutils              2.17                            Miscellaneous utilities specific to Debian
ii  dhcp3-client             3.0.4-13                        DHCP Client
ii  dhcp3-common             3.0.4-13                        Common files used by all the dhcp3* packages
ii  dictionaries-common      0.70.10                         Common utilities for spelling dictionary too
ii  diff                     2.8.1-11                        File comparison utilities
ii  dmidecode                2.8-4                           Dump Desktop Management Interface data
ii  dpkg                     1.13.25                         package maintenance system for Debian
ii  dselect                  1.13.25                         user tool to manage Debian packages
ii  e2fslibs                 1.39+1.40-WIP-2006.11.14+dfsg-2 ext2 filesystem libraries
ii  e2fsprogs                1.39+1.40-WIP-2006.11.14+dfsg-2 ext2 file system utilities and libraries
ii  ed                       0.2-20                          The classic unix line editor
ii  eject                    2.1.4-3                         ejects CDs and operates CD-Changers under Li
ii  findutils                4.2.28-1                        utilities for finding files--find, xargs, an
ii  gcc-4.1-base             4.1.1-21                        The GNU Compiler Collection (base package)
ii  gnupg                    1.4.6-2                         GNU privacy guard - a free PGP replacement
ii  gpgv                     1.4.6-2                         GNU privacy guard - signature verification t
ii  grep                     2.5.1.ds2-6                     GNU grep, egrep and fgrep
ii  groff-base               1.18.1.1-12                     GNU troff text-formatting system (base syste
ii  grub                     0.97-27                         GRand Unified Bootloader
ii  gzip                     1.3.5-15                        The GNU compression utility
ii  hostname                 2.93                            utility to set/show the host name or domain 
ii  iczech                   20040229-4                      The Czech dictionary for ispell
ii  ifupdown                 0.6.8                           high level tools to configure network interf
ii  info                     4.8.dfsg.1-4                    Standalone GNU Info documentation browser
ii  initramfs-tools          0.85g                           tools for generating an initramfs
ii  initscripts              2.86.ds1-38                     Scripts for initializing and shutting down t
ii  installation-report      2.29                            system installation report
ii  iptables                 1.3.6.0debian1-5                administration tools for packet filtering an
ii  iputils-ping             20020927-6                      Tools to test the reachability of network ho
ii  ispell                   3.1.20.0-4.3                    International Ispell (an interactive spellin
ii  klibc-utils              1.4.34-1                        small statically-linked utilities built with
ii  klogd                    1.4.1-18                        Kernel Logging Daemon
ii  laptop-detect            0.12.1                          attempt to detect a laptop
ii  libacl1                  2.2.41-1                        Access control list shared library
ii  libaspell15              0.60.4-4                        GNU Aspell spell-checker runtime library
ii  libattr1                 2.4.32-1                        Extended attribute shared library
ii  libblkid1                1.39+1.40-WIP-2006.11.14+dfsg-2 block device id library
ii  libbz2-1.0               1.0.3-6                         high-quality block-sorting file compressor l
ii  libc6                    2.3.6.ds1-13                    GNU C Library: Shared libraries
ii  libc6-i686               2.3.6.ds1-13                    GNU C Library: Shared libraries [i686 optimi
ii  libcap1                  1.10-14                         support for getting/setting POSIX.1e capabil
ii  libcomerr2               1.39+1.40-WIP-2006.11.14+dfsg-2 common error description library
ii  libconsole               0.2.3dbs-65                     Shared libraries for Linux console and font 
ii  libdb4.2                 4.2.52+dfsg-2                   Berkeley v4.2 Database Libraries [runtime]
ii  libdb4.3                 4.3.29-8                        Berkeley v4.3 Database Libraries [runtime]
ii  libdb4.4                 4.4.20-8                        Berkeley v4.4 Database Libraries [runtime]
ii  libdevmapper1.02         1.02.08-1                       The Linux Kernel Device Mapper userspace lib
ii  libgcc1                  4.1.1-21                        GCC support library
ii  libgcrypt11              1.2.3-2                         LGPL Crypto library - runtime library
ii  libgdbm3                 1.8.3-3                         GNU dbm database routines (runtime version)
ii  libgnutls13              1.4.4-3                         the GNU TLS library - runtime library
ii  libgpg-error0            1.4-1                           library for common error values and messages
ii  libklibc                 1.4.34-1                        minimal libc subset for use with initramfs
ii  libldap2                 2.1.30-13.3                     OpenLDAP libraries
ii  liblocale-gettext-perl   1.05-1                          Using libc functions for internationalizatio
ii  liblzo1                  1.08-3                          data compression library (old version)
ii  libncurses5              5.5-5                           Shared libraries for terminal handling
ii  libncursesw5             5.5-5                           Shared libraries for terminal handling (wide
ii  libnewt0.52              0.52.2-10                       Not Erik's Windowing Toolkit - text mode win
ii  libopencdk8              0.5.9-2                         Open Crypto Development Kit (OpenCDK) (runti
ii  libpam-modules           0.79-4                          Pluggable Authentication Modules for PAM
ii  libpam-runtime           0.79-4                          Runtime support for the PAM library
ii  libpam0g                 0.79-4                          Pluggable Authentication Modules library
ii  libpopt0                 1.10-3                          lib for parsing cmdline parameters
ii  libreadline5             5.2-2                           GNU readline and history libraries, run-time
ii  libsasl2                 2.1.22.dfsg1-8                  Authentication abstraction library
ii  libsasl2-2               2.1.22.dfsg1-8                  Authentication abstraction library
ii  libselinux1              1.32-3                          SELinux shared libraries
ii  libsepol1                1.14-2                          Security Enhanced Linux policy library for c
ii  libsigc++-2.0-0c2a       2.0.17-2                        type-safe Signal Framework for C++ - runtime
ii  libslang2                2.0.6-4                         The S-Lang programming library - runtime ver
ii  libss2                   1.39+1.40-WIP-2006.11.14+dfsg-2 command-line interface parsing library
ii  libssl0.9.8              0.9.8c-4                        SSL shared libraries
ii  libstdc++6               4.1.1-21                        The GNU Standard C++ Library v3
ii  libtasn1-3               0.3.6-2                         Manage ASN.1 structures (runtime)
ii  libtext-charwidth-perl   0.04-4                          get display widths of characters on the term
ii  libtext-iconv-perl       1.4-3                           converts between character sets in Perl
ii  libtext-wrapi18n-perl    0.06-5                          internationalized substitute of Text::Wrap
ii  libusb-0.1-4             0.1.12-5                        userspace USB programming library
ii  libuuid1                 1.39+1.40-WIP-2006.11.14+dfsg-2 universally unique id library
ii  libvolume-id0            0.105-4                         libvolume_id shared library
ii  libwrap0                 7.6.dbs-13                      Wietse Venema's TCP wrappers library
ii  linux-image-2.6-686      2.6.18+6                        Linux kernel 2.6 image on PPro/Celeron/PII/P
ii  linux-image-2.6.18-4-686 2.6.18.dfsg.1-12                Linux 2.6.18 image on PPro/Celeron/PII/PIII/
ii  locales                  2.3.6.ds1-13                    GNU C Library: National Language (locale) da
ii  login                    4.0.18.1-7                      system login tools
ii  logrotate                3.7.1-3                         Log rotation utility
ii  lsb-base                 3.1-23.1                        Linux Standard Base 3.1 init script function
ii  makedev                  2.3.1-83                        creates device files in /dev
ii  man-db                   2.4.3-6                         The on-line manual pager
ii  manpages                 2.39-1                          Manual pages about using a GNU/Linux system
ii  mawk                     1.3.3-11                        a pattern scanning and text processing langu
ii  mktemp                   1.5-2                           Makes unique filenames for temporary files
ii  module-init-tools        3.3-pre4-2                      tools for managing Linux kernel modules
ii  mount                    2.12r-19                        Tools for mounting and manipulating filesyst
ii  myspell-cs-cz            20040229-4                      Czech dictionary for myspell
ii  nano                     2.0.2-1                         free Pico clone with some new features
ii  ncurses-base             5.5-5                           Descriptions of common terminal types
ii  ncurses-bin              5.5-5                           Terminal-related programs and man pages
ii  net-tools                1.60-17                         The NET-3 networking toolkit
ii  netbase                  4.29                            Basic TCP/IP networking system
ii  netcat                   1.10-32                         TCP/IP swiss army knife
ii  openbsd-inetd            0.20050402-6                    The OpenBSD Internet Superserver
ii  passwd                   4.0.18.1-7                      change and administer password and group dat
ii  perl-base                5.8.8-7                         The Pathologically Eclectic Rubbish Lister
ii  popularity-contest       1.41                            Vote for your favourite packages automatical
ii  procps                   3.2.7-3                         /proc file system utilities
ii  readline-common          5.2-2                           GNU readline and history libraries, common f
ii  sed                      4.1.5-1                         The GNU sed stream editor
ii  sysklogd                 1.4.1-18                        System Logging Daemon
ii  sysv-rc                  2.86.ds1-38                     System-V-like runlevel change mechanism
ii  sysvinit                 2.86.ds1-38                     System-V-like init utilities
ii  sysvinit-utils           2.86.ds1-38                     System-V-like utilities
ii  tar                      1.16-2                          GNU tar
ii  tasksel                  2.66                            Tool for selecting tasks for installation on
ii  tasksel-data             2.66                            Official tasks used for installation of Debi
ii  tcpd                     7.6.dbs-13                      Wietse Venema's TCP wrapper utilities
ii  traceroute               1.4a12-21                       traces the route taken by packets over a TCP
ii  tzdata                   2007b-1                         Time Zone and Daylight Saving Time Data
ii  udev                     0.105-4                         /dev/ and hotplug management daemon
ii  update-inetd             4.27-0.5                        inetd.conf updater
ii  usbutils                 0.72-7                          USB console utilities
ii  util-linux               2.12r-19                        Miscellaneous system utilities
ii  vim-common               7.0-122+1etch2                  Vi IMproved - Common files
ii  vim-tiny                 7.0-122+1etch2                  Vi IMproved - enhanced vi editor - compact v
ii  wget                     1.10.2-2                        retrieves files from the web
ii  whiptail                 0.52.2-10                       Displays user-friendly dialog boxes from she
ii  zlib1g                   1.2.3-13                        compression library - runtime
$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             874M  319M  538M  38% /
tmpfs                  63M     0   63M   0% /lib/init/rw
udev                   10M   48K   10M   1% /dev
tmpfs                  63M     0   63M   0% /dev/shm
19.1.2008 21:35 Peter Lehotsky | skóre: 26 | Prague
Rozbalit Rozbalit vše Re: vycisteni debianu
zbytecnosti
ii  aspell                   0.60.4-4                        GNU Aspell spell-checker
ii  aspell-cs                0.0.20040614.1-1                Czech dictionary for GNU Aspell
ii  dhcp3-client             3.0.4-13                        DHCP Client
ii  dhcp3-common             3.0.4-13                        Common files used by all the dhcp3* packages
ii  dictionaries-common      0.70.10                         Common utilities for spelling dictionary too
ii  gcc-4.1-base             4.1.1-21                        The GNU Compiler Collection (base package)
ii  iczech                   20040229-4                      The Czech dictionary for ispell
ii  installation-report      2.29                            system installation report
ii  ispell                   3.1.20.0-4.3                    International Ispell (an interactive spellin
ii  myspell-cs-cz            20040229-4                      Czech dictionary for myspell

bez ncurses se da zit :-)
ii  ncurses-base             5.5-5                           Descriptions of common terminal types
ii  ncurses-bin              5.5-5                           Terminal-related programs and man pages

mas ed a nano, to ti staci stejne tam bude jeden navic :-)
ii  vim-common               7.0-122+1etch2                  Vi IMproved - Common files
ii  vim-tiny                 7.0-122+1etch2                  Vi IMproved - enhanced vi editor - compact v

pokud nemas initrd tak 
ii  cpio                     2.6-17                          GNU cpio -- a program to manage archives of

pokud ti nebude chybet acpi tak
ii  laptop-detect            0.12.1                          attempt to detect a laptop

kernel ti staci jeden, vyber si
ii  linux-image-2.6-686      2.6.18+6                        Linux kernel 2.6 image on PPro/Celeron/PII/P
ii  linux-image-2.6.18-4-686 2.6.18.dfsg.1-12                Linux 2.6.18 image on PPro/Celeron/PII/PIII/

porebujes lsb? Nepotrebujes :-)
ii  lsb-base                 3.1-23.1                        Linux Standard Base 3.1 init script function

server mas nainstalovany a na pridavani sw mas aptitude (pripadne zrus i to, staci ti apt)
ii  tasksel                  2.66                            Tool for selecting tasks for installation on
ii  tasksel-data             2.66                            Official tasks used for installation of Debi

tohle snad nepotrebujes, cist si muzes na svym PC a ne na serveru
ii  man-db                   2.4.3-6                         The on-line manual pager
ii  manpages                 2.39-1                          Manual pages about using a GNU/Linux system
19.1.2008 23:10 depka
Rozbalit Rozbalit vše Re: vycisteni debianu
to jadro je tam ve skutecnosti jenom jedno, druhy balicek je pomocny ktery ma stale stejne jmeno a jeho novejsi verze zavisi na novejsim balicku jadra ktere ma v nazvu vyssi verzi(jestli jsem to pochopil dobre)
20.1.2008 10:55 Peter Lehotsky | skóre: 26 | Prague
Rozbalit Rozbalit vše Re: vycisteni debianu
Mas pravdu, metabalicky nepouzivam prave kvuli zavislostem pri cisteni, ale porad muze neusetrit cennych 24,6kb :-).

Ted vidim ze chtel na net z mobilu (pokud to chapu spravne), takze asi pridat wvdial a pokud nebude mit pevnou IP tak nerusit dhcp klienta.
Jakub Lucký avatar 20.1.2008 18:33 Jakub Lucký | skóre: 40 | Praha
Rozbalit Rozbalit vše Re: vycisteni debianu
Ještě bych odebral:
již zmiňovaný: 
ii  aptitude                 0.4.4-4                         terminal-based apt frontend

Tohle asi nebude moc potřeba
ii  popularity-contest       1.41                            Vote for your favourite packages automatical

zvážil bych odebrání, podle funkce 
ii  klogd                    1.4.1-18                        Kernel Logging Daemon
ii  netcat                   1.10-32                         TCP/IP swiss army knife

Pokud budeš mazat ty manpages, tak se asi můžeš zbavit i infa
ii  info                     4.8.dfsg.1-4                    Standalone GNU Info documentation browser
Pak bych to protáhnul deborphanem (ten si budeš muset doinstalovat) a uvidí se... (Nezaručuju funkčnost mých rad, ale fungovat by to mělo tak na 99,9%)
If you understand, things are just as they are; if you do not understand, things are just as they are.
21.1.2008 11:12 Peter Lehotsky | skóre: 26 | Prague
Rozbalit Rozbalit vše Re: vycisteni debianu
A pro dokonale masochisticky system muze odebrat par dalsich zbytecnosti :-)
ii  apt-utils                0.6.46.4-0.1                    APT utility programs
ii  bsdmainutils             6.1.6                           collection of more utilities from FreeBSD
ii  busybox                  1.1.3-4                         Tiny utilities for small and embedded system
ii  console-tools            0.2.3dbs-65                     Linux console and font utilities
ii  debian-archive-keyring   2007.02.19                      GnuPG archive keys of the Debian archive
ii  debianutils              2.17                            Miscellaneous utilities specific to Debian
ii  diff                     2.8.1-11                        File comparison utilities
ii  dmidecode                2.8-4                           Dump Desktop Management Interface data
ii  e2fslibs                 1.39+1.40-WIP-2006.11.14+dfsg-2 ext2 filesystem libraries
ii  e2fsprogs                1.39+1.40-WIP-2006.11.14+dfsg-2 ext2 file system utilities and libraries
ii  eject                    2.1.4-3                         ejects CDs and operates CD-Changers under Li
ii  findutils                4.2.28-1                        utilities for finding files--find, xargs, an
ii  gnupg                    1.4.6-2                         GNU privacy guard - a free PGP replacement
ii  gpgv                     1.4.6-2                         GNU privacy guard - signature verification t
ii  groff-base               1.18.1.1-12                     GNU troff text-formatting system (base syste
ii  hostname                 2.93                            utility to set/show the host name or domain
ii  logrotate                3.7.1-3                         Log rotation utility
ii  openbsd-inetd            0.20050402-6                    The OpenBSD Internet Superserver
ii  traceroute               1.4a12-21                       traces the route taken by packets over a TCP
ii  tzdata                   2007b-1                         Time Zone and Daylight Saving Time Data
ii  usbutils                 0.72-7                          USB console utilities
ii  wget                     1.10.2-2                        retrieves files from the web
ii  locales                  2.3.6.ds1-13                    GNU C Library: National Language (locale) da

pripadne
ii  zlib1g                   1.2.3-13
Honza Balák avatar 21.1.2008 11:41 Honza Balák | skóre: 23 | blog: Jaxův linuxový zápisník | Předklášteří
Rozbalit Rozbalit vše Re: vycisteni debianu
Na eject jsem myslel prvně, ale zrovna wget bych ponechal, může se hodit... :-) Zbyde ještě nějakej instalovací nástroj po odebrání apt-utils?
<null>
21.1.2008 13:47 Peter Lehotsky | skóre: 26 | Prague
Rozbalit Rozbalit vše Re: vycisteni debianu
Praveze hodit by se mohla spousta z tech veci :-).
Dalibor Smolík avatar 19.1.2008 18:51 Dalibor Smolík | skóre: 54 | blog: Postrehy_ze_zivota | 50°5'31.93"N,14°19'35.51"E
Rozbalit Rozbalit vše Re: vycisteni debianu
Odpovědět | | Sbalit | Link | Blokovat | Admin
částečně by mohl pomoci program deborphan k vyčištění nepotřebných knihoven.
Rozdíly v řeči a ve zvyklostech neznamenají vůbec nic, budeme-li mít stejné cíle a otevřená srdce.
20.1.2008 14:38 Čech Antonín | skóre: 17 | blog: CzechTony
Rozbalit Rozbalit vše Re: vycisteni debianu
Odpovědět | | Sbalit | Link | Blokovat | Admin
taky localepurge trochu usetri misto.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.