LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Linux with minimal size ( < 300 MB) (https://www.linuxquestions.org/questions/linux-newbie-8/installing-linux-with-minimal-size-300-mb-815239/)

ajeetsinghraina 06-20-2010 03:48 AM

Installing Linux with minimal size ( < 300 MB)
 
I have been trying to install Linux with minimal package lesser than 300 MB.
I have tried and put the kickstart which does within 700 MB(first CD) at Installation .
Anyone who have ever tried writing the kickstart file for the same.

saavik 06-20-2010 04:01 AM

No, I did not write a kickstart file, but why not using some small Linux dist. like DSL ?

snowday 06-20-2010 12:59 PM

SliTaz, Tiny Core, Puppy, DSL, DeLi, etc.

rkski 06-20-2010 02:50 PM

Zenwalk just released 6.4 'Core' which is what you're looking for (285MB 10min install). Check it out.

jefro 06-20-2010 04:16 PM

I am not sure why centos makes it that big.

As with the others you could put a very much smaller footprint on with some other distro.

I guess you could strip down CD1 to that size.

I'd use astrumi or puppy maybe even tom's boot disk.

ajeetsinghraina 06-21-2010 08:11 AM

Guys,

I knew about the Linux which can even come within a floppy like mulinux and others.
But What I really need is making CentOS very small which should have needed minimal installation like selinux is not necessary and so on.

jefro 06-21-2010 04:02 PM

Have you tried to strip down the CD1?

beowulfnode 11-30-2010 09:10 PM

Quote:

Originally Posted by ajeetsinghraina (Post 4010165)
But What I really need is making CentOS very small which should have needed minimal installation like selinux is not necessary and so on.

To get an idea of what packages are needed, for creation of a kickstart file I followed some advice on a centos page
  1. doing a CentOS 5.5 install via the gui
  2. choose custom packages
  3. deselect everything
then
  1. I installed rpmreaper from rpmforge (aka DAG)
  2. then uninstalling anything unwated in yellow
  3. then uninstall anything unwated that has now become yellow
  4. repeat until no more yellow can be uninstalled
  5. go through things with circular dependencies and remove entire circle of unwanted packages

I arrived at the following list (copy it to a spreadsheet for better viewing)

Code:

Delete        Leaf        Circular Dep        Size        Package Name        Version        RemoveWholePackage
D        L                856K        atk        1.12.2-1.fc6.i386        TRUE
D        L                869K        atk        1.12.2-1.fc6.x86_64        TRUE
D        l                148K        audit-libs        1.7.17-3.el5.i386        FALSE
D        L                266K        audit-libs-python        1.7.17-3.el5.x86_64        TRUE
D        L                1.7M        authconfig        5.3.21-6.el5.x86_64        TRUE
D        L                579K        bitstream-vera-fonts        1.10-7.noarch        TRUE
D        L                1.1M        cairo        1.2.4-5.el5.i386        TRUE
D        L                1.1M        cairo        1.2.4-5.el5.x86_64        TRUE
D        L                531K        checkpolicy        1.33.1-6.el5.x86_64        TRUE
D        L        o        140K        cracklib        2.8.9-3.3.i386        FALSE
D        L                1.3M        cryptsetup-luks        1.0.3-5.el5.x86_64        TRUE
D        L                318K        cups-libs        1.3.7-18.el5.i386        TRUE
D        L                315K        cups-libs        1.3.7-18.el5.x86_64        TRUE
D        L                297K        cyrus-sasl-lib        2.1.22-5.el5_4.3.x86_64        TRUE
D                o        486K        dbus        1.1.2-14.el5.x86_64        TRUE
D        L                473K        dbus-glib        0.73-8.el5.x86_64        TRUE
D                o        236K        dbus-libs        1.1.2-14.el5.x86_64        TRUE
D        l        o        1.6M        device-mapper        1.02.39-1.el5.i386        FALSE
D        L                562K        dhclient        3.0.5-23.el5.x86_64        TRUE
D        L                259K        dhcpv6-client        1.0.10-18.el5.x86_64        TRUE
D        L                173K        dmidecode        2.10-3.el5.x86_64        TRUE
D        L                206K        e2fsprogs-libs        1.39-23.el5.i386        FALSE
D        L                384K        ecryptfs-utils        75-5.el5.i386        TRUE
D        L                459K        ecryptfs-utils        75-5.el5.x86_64        TRUE
D        L                66K        ed        0.2-39.el5_2.x86_64        TRUE
D        L                158K        expat        1.95.8-8.3.el5_4.2.i386        FALSE
D        L                1.6M        file        4.17-15.el5_3.1.x86_64        TRUE
D        L                362K        fontconfig        2.4.1-7.el5.i386        TRUE
D        L                388K        fontconfig        2.4.1-7.el5.x86_64        TRUE
D        L                613K        freetype        2.2.1-21.el5_3.i386        TRUE
D        L                628K        freetype        2.2.1-21.el5_3.x86_64        TRUE
D        l                2.3M        glib2        2.12.3-4.el5_3.1.i386        FALSE
D        L                12.0M        glibc        2.5-49.i686        FALSE
D        L                815K        gnutls        1.4.1-3.el5_3.5.i386        TRUE
D        L                843K        gnutls        1.4.1-3.el5_3.5.x86_64        TRUE
D        L                18.6M        gtk2        2.10.4-20.el5.i386        TRUE
D        L                18.7M        gtk2        2.10.4-20.el5.x86_64        TRUE
D                o        1.1M        hal        0.5.8.1-59.el5.x86_64        TRUE
D        L                76K        hdparm        6.6-2.x86_64        TRUE
D        L                17K        hicolor-icon-theme        0.9-2.1.noarch        TRUE
D        L                1.3M        hwdata        0.213.18-1.el5.1.noarch        TRUE
D        L                653K        iptables        1.3.5-5.3.el5_4.1.x86_64        TRUE
D        L                404K        iptables-ipv6        1.3.5-5.3.el5_4.1.x86_64        TRUE
D                        2.7M        kbd        1.12-21.el5.x86_64        TRUE
D        L                65K        keyutils        1.2-1.el5.x86_64        TRUE
D        L                33K        keyutils-libs        1.2-1.el5.i386        FALSE
D        L                1.4M        krb5-libs        1.6.1-36.el5_4.1.i386        FALSE
D        L                417K        kudzu        1.2.57.1.24-1.el5.centos.x86_64        TRUE
D        l                72K        libgcc        4.1.2-48.el5.i386        FALSE
D        L                512K        libgcrypt        1.4.4-5.el5.i386        FALSE
D        L                188K        libgpg-error        1.4-2.i386        FALSE
D        L                105K        libhugetlbfs        1.3-7.el5.i386        TRUE
D        L                108K        libhugetlbfs        1.3-7.el5.x86_64        TRUE
D        L                268K        libjpeg        6b-37.i386        TRUE
D        L                279K        libjpeg        6b-37.x86_64        TRUE
D        L                567K        libpng        1.2.10-7.1.el5_3.2.i386        TRUE
D        L                560K        libpng        1.2.10-7.1.el5_3.2.x86_64        TRUE
D        l        o        90K        libselinux        1.33.4-5.5.el5.i386        FALSE
D        L                146K        libselinux-python        1.33.4-5.5.el5.x86_64        TRUE
D        L                51K        libselinux-utils        1.33.4-5.5.el5.x86_64        TRUE
D        L                412K        libsemanage        1.9.1-4.4.el5.x86_64        TRUE
D        l                239K        libsepol        1.15.2-3.el5.i386        FALSE
D        L                904K        libstdc++        4.1.2-48.el5.i386        TRUE
D                        951K        libstdc++        4.1.2-48.el5.x86_64        TRUE
D        L                12K        libtermcap        2.0.8-46.1.i386        FALSE
D        L                724K        libtiff        3.8.2-7.el5_3.4.i386        TRUE
D        L                774K        libtiff        3.8.2-7.el5_3.4.x86_64        TRUE
D                        55K        libusb        0.1.12-5.1.x86_64        TRUE
D                        1.6M        libuser        0.54.7-2.1.el5_4.1.x86_64        TRUE
D                        40K        libutempter        1.1.4-4.el5.x86_64        TRUE
D                        26K        libvolume_id        095-14.21.el5.x86_64        TRUE
D        L                2.7M        libX11        1.0.3-11.el5.i386        TRUE
D        L                2.8M        libX11        1.0.3-11.el5.x86_64        TRUE
D        L                29K        libXau        1.0.1-3.1.i386        TRUE
D        L                31K        libXau        1.0.1-3.1.x86_64        TRUE
D        L                54K        libXcursor        1.1.7-1.1.i386        TRUE
D        L                57K        libXcursor        1.1.7-1.1.x86_64        TRUE
D        L                31K        libXdmcp        1.0.1-2.1.i386        TRUE
D        L                32K        libXdmcp        1.0.1-2.1.x86_64        TRUE
D        L                74K        libXext        1.0.1-2.1.i386        TRUE
D        L                83K        libXext        1.0.1-2.1.x86_64        TRUE
D        L                20K        libXfixes        4.0.1-2.1.i386        TRUE
D        L                24K        libXfixes        4.0.1-2.1.x86_64        TRUE
D        L                79K        libXft        2.1.10-1.1.i386        TRUE
D        L                81K        libXft        2.1.10-1.1.x86_64        TRUE
D        L                43K        libXi        1.0.1-4.el5_4.i386        TRUE
D        L                46K        libXi        1.0.1-4.el5_4.x86_64        TRUE
D        L                9K        libXinerama        1.0.1-2.1.i386        TRUE
D        L                10K        libXinerama        1.0.1-2.1.x86_64        TRUE
D        L                18K        libXrandr        1.1.1-3.3.i386        TRUE
D        L                20K        libXrandr        1.1.1-3.3.x86_64        TRUE
D        L                46K        libXrender        0.9.1-3.1.i386        TRUE
D        L                51K        libXrender        0.9.1-3.1.x86_64        TRUE
D        l        o        946K        mkinitrd        5.1.19.6-61.i386        FALSE
D        L                254K        newt        0.52.2-15.el5.x86_64        TRUE
D        L                245K        nspr        4.7.6-1.el5_4.i386        FALSE
D        L                2.6M        nss        3.12.3.99.3-1.el5.centos.2.i386        FALSE
D                        599K        openldap        2.3.43-12.el5.x86_64        TRUE
D                        729K        openssh        4.3p2-41.el5_5.1.x86_64        TRUE
D        L                840K        openssh-clients        4.3p2-41.el5_5.1.x86_64        TRUE
D        L                475K        openssh-server        4.3p2-41.el5_5.1.x86_64        TRUE
D        L                3.3M        openssl        0.9.8e-12.el5_4.6.i686        FALSE
D                o        3.4M        openssl        0.9.8e-12.el5_4.6.x86_64        FALSE
D        l        o        2.4M        pam        0.99.6.2-6.el5_4.1.i386        FALSE
D        L                783K        pango        1.14.9-6.el5.centos.i386        TRUE
D        L                846K        pango        1.14.9-6.el5.centos.x86_64        TRUE
D                        27K        passwd        0.73-1.x86_64        TRUE
D                        160K        pciutils        2.2.3-8.el5_4.x86_64        TRUE
D                o        279K        pm-utils        0.99.3-10.el5.centos.x86_64        TRUE
D        L                2.1M        policycoreutils        1.33.12-14.8.el5.x86_64        TRUE
D        L                1.6M        prelink        0.4.0-2.el5.x86_64        TRUE
D        L                337K        readline        5.1-3.el5.i386        FALSE
D        L                923K        rhpl        0.194.1-1.x86_64        TRUE
D        L                77K        rpmreaper        0.1.6-1.el5.x86_64        TRUE
D        L                754K        screen        4.0.3-1.el5_4.1.x86_64        TRUE
D        L                7.5M        selinux-policy        2.4.6-279.el5.noarch        TRUE
D        L                29.8M        selinux-policy-targeted        2.4.6-279.el5.noarch        TRUE
D        L                3.3M        setools        3.0-3.el5.x86_64        TRUE
D        L                31K        setserial        2.17-19.2.2.x86_64        TRUE
D        L                991K        slang        2.0.6-4.el5.x86_64        TRUE
D        L                114K        sysfsutils        2.0.0-6.x86_64        TRUE
D        L                1.0M        system-config-securityleve        l-tui 1.6.29.1-5.el5.x86_64        TRUE
D        L                2.7M        tcl        8.4.13-4.el5.x86_64        TRUE
D                        269K        tcp_wrappers        7.6-40.7.el5.x86_64        TRUE
D        L                793K        trousers        0.3.1-4.el5.i386        TRUE
D        L                780K        trousers        0.3.1-4.el5.x86_64        TRUE
D        L                170K        udftools        1.0.0b3-0.1.el5.x86_64        TRUE
D                        540K        usermode        1.88-3.el5.2.x86_64        TRUE
D        L                616K        vim-minimal        7.0.109-6.el5.x86_64        TRUE
D        L                193K        wireless-tools        28-2.el5.x86_64        TRUE
D        L                2K        xorg-x11-filesystem        7.1-2.fc6.noarch        TRUE
D        L                14K        yum-priorities        1.1.16-14.el5.centos.1.noarch        TRUE
D        L                78K        zlib        1.2.3-3.i386        FALSE
                        149K        audit-libs        1.7.17-3.el5.x86_64        FALSE
                        0K        basesystem        8.0-5.1.1.el5.centos.noarch        FALSE
                        5.1M        bash        3.2-24.el5.x86_64        FALSE
                        7.1M        binutils        2.17.50.0.6-14.el5.x86_64        FALSE
                        64K        bzip2-libs        1.0.3-4.el5_2.x86_64        FALSE
                        35K        centos-release        5-5.el5.centos.x86_64        FALSE
                        50K        centos-release-notes        5.5-0.x86_64        FALSE
                        583K        chkconfig        1.3.30.2-2.el5.x86_64        FALSE
                o        8.6M        coreutils        5.97-23.el5_4.2.x86_64        FALSE
                        280K        cpio        2.6-23.el5_4.1.x86_64        FALSE
                o        173K        cracklib        2.8.9-3.3.x86_64        FALSE
                        7.7M        cracklib-dicts        2.8.9-3.3.x86_64        FALSE
                        1K        crontabs        1.10-8.noarch        FALSE
                        2.0M        db4        4.3.29-10.el5.x86_64        FALSE
                o        1.9M        device-mapper        1.02.39-1.el5.x86_64        FALSE
                o        28K        device-mapper-event        1.02.39-1.el5.x86_64        FALSE
                o        6.9M        device-mapper-multipath        0.4.7-34.el5.x86_64        FALSE
                        556K        diffutils        2.8.1-15.2.3.el5.x86_64        FALSE
                o        1.6M        dmraid        1.0.0.rc13-63.el5.x86_64        FALSE
                o        9K        dmraid-events        1.0.0.rc13-63.el5.x86_64        FALSE
                o        2.2M        e2fsprogs        1.39-23.el5.x86_64        FALSE
                o        228K        e2fsprogs-libs        1.39-23.el5.x86_64        FALSE
                        75K        elfutils-libelf        0.137-3.el5.x86_64        FALSE
                        149K        ethtool        6-4.el5.x86_64        FALSE
                        168K        expat        1.95.8-8.3.el5_4.2.x86_64        FALSE
                        0K        filesystem        2.4.0-3.el5.x86_64        FALSE
                o        671K        findutils        4.2.27-6.el5.x86_64        FALSE
                o        26K        fipscheck        1.2.0-1.el5.x86_64        FALSE
                o        7K        fipscheck-lib        1.2.0-1.el5.x86_64        FALSE
                        4.2M        gawk        3.1.5-14.el5.x86_64        FALSE
                        47K        gdbm        1.8.0-26.2.1.x86_64        FALSE
                        2.3M        glib2        2.12.3-4.el5_3.1.x86_64        FALSE
                        11.1M        glibc        2.5-49.x86_64        FALSE
                        63.6M        glibc-common        2.5-49.x86_64        FALSE
        L                0K        gpg-pubkey        217521f6-45e8a532.        FALSE
        L                0K        gpg-pubkey        e8562897-459f07a4.        FALSE
                        434K        grep        2.5.1-55.el5.x86_64        FALSE
        L                1.8M        grub        0.97-13.5.x86_64        FALSE
                        178K        gzip        1.3.5-11.el5.centos.1.x86_64        FALSE
                        87K        hmaccalc        0.9.6-3.el5.x86_64        FALSE
                        280K        info        4.8-14.el5.x86_64        FALSE
                o        5.2M        initscripts        8.45.30-2.el5.centos.x86_64        FALSE
                        2.1M        iproute        2.6.18-11.el5.x86_64        FALSE
                        278K        iputils        20020927-46.el5.x86_64        FALSE
        L                92.0M        kernel        2.6.18-194.el5.x86_64        FALSE
                        33K        keyutils-libs        1.2-1.el5.x86_64        FALSE
                o        939K        kpartx        0.4.7-34.el5.x86_64        FALSE
                o        1.4M        krb5-libs        1.6.1-36.el5_4.1.x86_64        FALSE
                        187K        less        436-2.el5.x86_64        FALSE
                        26K        libacl        2.2.39-6.el5.x86_64        FALSE
                        16K        libattr        2.4.32-1.1.x86_64        FALSE
                        56K        libcap        1.10-26.x86_64        FALSE
                        83K        libgcc        4.1.2-48.el5.x86_64        FALSE
                        456K        libgcrypt        1.4.4-5.el5.x86_64        FALSE
                        191K        libgpg-error        1.4-2.x86_64        FALSE
                o        91K        libselinux        1.33.4-5.5.el5.x86_64        FALSE
                        240K        libsepol        1.15.2-3.el5.x86_64        FALSE
                        137K        libsysfs        2.0.0-6.x86_64        FALSE
                        14K        libtermcap        2.0.8-46.1.x86_64        FALSE
                        1.6M        libxml2        2.6.26-2.1.2.8.x86_64        FALSE
                        56K        logrotate        3.7.4-9.x86_64        FALSE
                o        7.4M        lvm2        2.02.56-8.el5.x86_64        FALSE
                        1.7M        m2crypto        0.16-6.el5.6.x86_64        FALSE
                o        645K        MAKEDEV        3.23-1.2.x86_64        FALSE
                o        23K        mcstrans        0.2.11-3.el5.x86_64        FALSE
                        32K        mingetty        1.07-5.2.2.x86_64        FALSE
                o        902K        mkinitrd        5.1.19.6-61.x86_64        FALSE
                        16K        mktemp        1.5-23.2.2.x86_64        FALSE
                o        882K        module-init-tools        3.3-0.pre3.1.60.el5.x86_64        FALSE
                        2.3M        nash        5.1.19.6-61.x86_64        FALSE
                        2.9M        ncurses        5.5-24.20060715.x86_64        FALSE
                o        780K        net-tools        1.60-81.el5.x86_64        FALSE
                        249K        nspr        4.7.6-1.el5_4.x86_64        FALSE
                        2.9M        nss        3.12.3.99.3-1.el5.centos.2.x86_64        FALSE
                o        2.5M        pam        0.99.6.2-6.el5_4.1.x86_64        FALSE
                        228K        pcre        6.6-2.el5_1.7.x86_64        FALSE
                        140K        popt        1.10.2.3-18.el5.x86_64        FALSE
                        402K        procps        3.2.7-16.el5.x86_64        FALSE
                o        160K        psmisc        22.2-7.x86_64        FALSE
                o        21.1M        python        2.4.3-27.el5.x86_64        FALSE
                        305K        python-elementtree        1.2.6-5.x86_64        FALSE
                        132K        python-iniparse        0.2.3-4.el5.noarch        FALSE
                        118K        python-sqlite        1.1.7-1.2.1.x86_64        FALSE
                        468K        python-urlgrabber        3.1.0-5.el5.noarch        FALSE
                        376K        readline        5.1-3.el5.x86_64        FALSE
                        26.5M        redhat-logos        4.9.99-11.el5.centos.noarch        FALSE
        L                1K        rootfiles        8.1-1.1.1.noarch        FALSE
                o        3.6M        rpm        4.4.2.3-18.el5.x86_64        FALSE
                o        2.0M        rpm-libs        4.4.2.3-18.el5.x86_64        FALSE
                        131K        rpm-python        4.4.2.3-18.el5.x86_64        FALSE
                        328K        sed        4.1.5-5.fc6.x86_64        FALSE
                        373K        setup        2.5.58-7.el5.noarch        FALSE
                        16K        sgpio        1.2.0_10-2.el5.x86_64        FALSE
                o        2.6M        shadow-utils        4.0.17-15.el5.x86_64        FALSE
                        402K        sqlite        3.3.6-5.x86_64        FALSE
                o        125K        sysklogd        1.4.1-46.el5.x86_64        FALSE
                o        221K        SysVinit        2.86-15.el5.x86_64        FALSE
                o        1.6M        tar        1.15.1-30.el5.x86_64        FALSE
                        789K        termcap        5.5-1.20060701.1.noarch        FALSE
                        1.8M        tzdata        2010e-1.el5.noarch        FALSE
                o        5.3M        udev        095-14.21.el5.x86_64        FALSE
                o        4.6M        util-linux        2.13-0.52.el5_4.1.x86_64        FALSE
                o        3.2M        yum        3.2.22-26.el5.centos.noarch        FALSE
                o        47K        yum-fastestmirror        1.1.16-14.el5.centos.1.noarch        FALSE
                        55K        yum-metadata-parser        1.1.2-3.el5.centos.x86_64        FALSE
                        87K        zlib        1.2.3-3.x86_64        FALSE


note that some packages are duplicates with .i386 and .x86_64 and I only chose to remove one of them
also this list has uninstalled all text editors, even vi. Packages marked as D - delete but RemoveWholePackage FALSE have some architecture of that package installed. However even after doing this I still have an installed size of 572MB.

so based on this if you install
  • kernel
  • grub
  • rootfiles
  • vim-minimal
  • yum
  • libgcrypt
and all their dependencies in a kickstart install that does not install anything else it will hopefully be bootable, have vi and yum, but not much else. Which may reduce the installed size further.

I haven't actually done this with a kickstart install yet, you may also need/want
  • passwd
  • hal - for better hardware control and support
  • dhclient - if you allocate ip's with your dhcp
installed in kickstart as they seem important.

I personally also like to have
  • openssh-server
  • screen
for admin on a headless system

however this still leaves a lot of kernel related stuff, that is not needed on all systems.

TobiSGD 11-30-2010 09:17 PM

I think you can also gain a few megabytes with deleting man-pages, /usr/share/doc/* and unneeded locales.
May I ask what you have for a purpose for such a minimal system, and why it has to be CentOS?

beowulfnode 05-12-2013 08:28 PM

I know this is an old thread, but just thought I'd add that I have done that kickstart thing on CentOS 6 and it didn't reduce the size much at all.
Also note rpmreaper is now in the CentOS EPEL repo, and has been for some time. I still find it a handy tool for looking in to dependency related things.
http://fedoraproject.org/wiki/EPEL

The easiest way to install the EPEL repo on a CentOS 6 install is to run this command as root
Code:

rpm -Uvh --force http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm


All times are GMT -5. The time now is 12:05 PM.