Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Centos stripper
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Centos stripper

24khost24khost Member
edited December 2012 in General

funny title I know!

So what I am looking for is a script that removes everything not needed to run a centos based webserver. any scripts any body knows of.

«1

Comments

  • Doesn't the minimal installation satisfy that?
    Am I missing something out? (I've never check what's inside the minimal install.)

    Also, the title is... weird.

  • There are still things that run that don't need to. I want to get the most minimal install there is. that is still web ready.

  • That doesn't strip it down.

  • @24khost said: There are still things that run that don't need to. I want to get the most minimal install there is. that is still web ready.

    rm /usr/bin/*

  • So... you want the minimal template?

  • problem with minimal is it still has stuff in it that isn't needed for a webserver. I want to litterally have only the bare metal os with ssh and wget and nano installed that is it.

  • The title is misleading :(

  • @24khost said: problem with minimal is it still has stuff in it that isn't needed for a webserver. I want to litterally have only the bare metal os with ssh and wget and nano installed that is it.

    You might get a better reply at centos forums, just sayin.

  • @24khost said: I want to get the most minimal install there is. that is still web ready.

    rpm -qa
    remove what you don't want, done.

  • Yes but need to know which packages can be removed.

  • @24khost said: need to know which packages can be removed.

    Try it and figure it out, trial and error is a great learning process, and since most here are in love with Debian, you'll get little help in the community with CentOS

  • @24khost said: Yes but need to know which packages can be removed.

    Or what packages you need
    (SSH, rsync, cron = basically look at a Debian minimal template and apply that to this CentOS template you are making)

  • I spent about 15 minutes and came up with the following list:

    attr-2.4.44-7.el6.i686
    audit-libs-2.1.3-3.el6.i686
    basesystem-10.0-4.el6.noarch
    bash-4.1.2-9.el6_2.i686
    binutils-2.20.51.0.2-5.28.el6.i686
    bzip2-1.0.5-7.el6_0.i686
    bzip2-libs-1.0.5-7.el6_0.i686
    ca-certificates-2010.63-3.el6_1.5.noarch
    centos-release-6-2.el6.centos.7.i686
    chkconfig-1.3.49.3-1.el6_2.i686
    coreutils-8.4-16.el6.i686
    coreutils-libs-8.4-16.el6.i686
    cpio-2.10-9.el6.i686
    cracklib-2.8.16-4.el6.i686
    cracklib-dicts-2.8.16-4.el6.i686
    curl-7.19.7-26.el6_2.4.i686
    cyrus-sasl-lib-2.1.23-13.el6.i686
    db4-4.7.25-16.el6.i686
    db4-utils-4.7.25-16.el6.i686
    dbus-libs-1.2.24-5.el6_1.i686
    dhclient-4.1.1-25.P1.el6_2.1.i686
    dhcp-common-4.1.1-25.P1.el6_2.1.i686
    diffutils-2.8.1-28.el6.i686
    elfutils-libelf-0.152-1.el6.i686
    elfutils-libs-0.152-1.el6.i686
    ethtool-2.6.33-0.3.el6.i686
    expat-2.0.1-9.1.el6.i686
    file-libs-5.04-11.el6.i686
    filesystem-2.4.30-3.el6.i686
    findutils-4.4.2-6.el6.i686
    fipscheck-1.2.0-7.el6.i686
    fipscheck-lib-1.2.0-7.el6.i686
    gamin-0.1.10-9.el6.i686
    gawk-3.1.7-6.el6.i686
    gdbm-1.8.0-36.el6.i686
    glib2-2.22.5-6.el6.i686
    glibc-2.12-1.47.el6_2.12.i686
    glibc-common-2.12-1.47.el6_2.12.i686
    gmp-4.3.1-7.el6_2.2.i686
    gnupg2-2.0.14-4.el6.i686
    gnutls-2.8.5-4.el6_2.2.i686
    gpgme-1.1.8-3.el6.i686
    grep-2.6.3-2.el6.i686
    groff-1.18.1.4-21.el6.i686
    gzip-1.3.12-18.el6.i686
    hwdata-0.233-7.6.el6.noarch
    info-4.13a-8.el6.i686
    initscripts-9.03.27-1.el6.centos.1.i686
    iproute-2.6.32-17.el6.i686
    iptables-1.4.7-5.1.el6_2.i686
    iputils-20071127-16.el6.i686
    keyutils-libs-1.4-3.el6.i686
    krb5-libs-1.9-22.el6_2.1.i686
    less-436-10.el6.i686
    libacl-2.2.49-6.el6.i686
    libattr-2.4.44-7.el6.i686
    libblkid-2.17.2-12.4.el6.i686
    libcap-2.16-5.5.el6.i686
    libcap-ng-0.6.4-3.el6_0.1.i686
    libcom_err-1.41.12-11.el6.i686
    libcurl-7.19.7-26.el6_2.4.i686
    libedit-2.11-4.20080712cvs.1.el6.i686
    libffi-3.0.5-3.2.el6.i686
    libgcc-4.4.6-3.el6.i686
    libgcrypt-1.4.5-9.el6_2.2.i686
    libgpg-error-1.7-4.el6.i686
    libgssglue-0.1-11.el6.i686
    libidn-1.18-2.el6.i686
    libnih-1.0.1-7.el6.i686
    libnl-1.1-14.el6.i686
    libselinux-2.0.94-5.2.el6.i686
    libsepol-2.0.41-4.el6.i686
    libss-1.41.12-11.el6.i686
    libssh2-1.2.2-7.el6_2.3.i686
    libstdc++-4.4.6-3.el6.i686
    libtalloc-2.0.1-1.1.el6.i686
    libtasn1-2.3-3.el6_2.1.i686
    libtdb-1.2.1-3.el6.i686
    libtirpc-0.2.1-5.el6.i686
    libusb-0.1.12-23.el6.i686
    libuser-0.56.13-4.el6_0.1.i686
    libutempter-1.1.5-4.1.el6.i686
    libuuid-2.17.2-12.4.el6.i686
    libxml2-2.7.6-4.el6_2.4.i686
    lua-5.1.4-4.1.el6.i686
    mailcap-2.1.31-2.el6.noarch
    MAKEDEV-3.24-6.el6.i686
    mingetty-1.08-5.el6.i686
    module-init-tools-3.9-19.el6_2.i686
    ncurses-5.7-3.20090208.el6.i686
    ncurses-base-5.7-3.20090208.el6.i686
    ncurses-libs-5.7-3.20090208.el6.i686
    net-tools-1.60-110.el6_2.i686
    nspr-4.8.9-3.el6_2.i686
    nss-3.13.1-7.el6_2.i686
    nss-softokn-3.12.9-11.el6.i686
    nss-softokn-freebl-3.12.9-11.el6.i686
    nss-sysinit-3.13.1-7.el6_2.i686
    nss-util-3.13.1-3.el6_2.i686
    openldap-2.4.23-20.el6.i686
    openssh-5.3p1-70.el6_2.2.i686
    openssh-clients-5.3p1-70.el6_2.2.i686
    openssh-server-5.3p1-70.el6_2.2.i686
    openssl-1.0.0-20.el6_2.5.i686
    pam-1.1.1-10.el6_2.1.i686
    passwd-0.77-4.el6_2.2.i686
    pcre-7.8-3.1.el6.i686
    perl-5.10.1-119.el6_1.1.i686
    perl-libs-5.10.1-119.el6_1.1.i686
    perl-Module-Pluggable-3.90-119.el6_1.1.i686
    perl-Pod-Escapes-1.04-119.el6_1.1.i686
    perl-Pod-Simple-3.13-119.el6_1.1.i686
    perl-version-0.77-119.el6_1.1.i686
    pinentry-0.7.6-6.el6.i686
    pkgconfig-0.23-9.1.el6.i686
    popt-1.13-7.el6.i686
    procps-3.2.8-21.el6.i686
    psmisc-22.6-15.el6_0.1.i686
    pth-2.0.7-9.3.el6.i686
    pygpgme-0.1-18.20090824bzr68.el6.i686
    python-2.6.6-29.el6.i686
    python-iniparse-0.3.1-2.1.el6.noarch
    python-libs-2.6.6-29.el6.i686
    python-pycurl-7.19.0-8.el6.i686
    python-urlgrabber-3.9.1-8.el6.noarch
    readline-6.0-3.el6.i686
    rootfiles-8.1-6.1.el6.noarch
    rpm-4.8.0-19.el6_2.1.i686
    rpm-libs-4.8.0-19.el6_2.1.i686
    rpm-python-4.8.0-19.el6_2.1.i686
    rsync-3.0.6-5.el6_0.1.i686
    sed-4.2.1-7.el6.i686
    setup-2.8.14-13.el6.noarch
    shadow-utils-4.1.4.2-13.el6.i686
    slang-2.2.1-1.el6.i686
    sqlite-3.6.20-1.el6.i686
    sysvinit-tools-2.87-4.dsf.el6.i686
    tar-1.23-3.el6.i686
    tcp_wrappers-libs-7.6-57.el6.i686
    tcsh-6.17-19.el6_2.i686
    time-1.7-37.1.el6.i686
    tzdata-2012c-1.el6.noarch
    udev-147-2.40.el6.i686
    upstart-0.6.5-10.el6.i686
    usermode-1.102-3.el6.i686
    util-linux-ng-2.17.2-12.4.el6.i686
    vim-common-7.2.411-1.6.el6.i686
    vim-minimal-7.2.411-1.6.el6.i686
    vzdev-1.0-7.swsoft.noarch
    vzdummy-glibc-2.12-1.7.el6.noarch
    vzdummy-init-fc13-1.0-1.noarch
    wget-1.12-1.4.el6.i686
    which-2.19-6.el6.i686
    xz-4.999.9-0.3.beta.20091007git.el6.i686
    xz-libs-4.999.9-0.3.beta.20091007git.el6.i686
    xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686
    yum-3.2.29-22.el6.centos.2.noarch
    yum-metadata-parser-1.1.2-16.el6.i686
    yum-plugin-fastestmirror-1.1.30-10.el6.noarch
    zlib-1.2.3-27.el6.i686
    

    Might be possible to cut a few more out.

  • you want to delete yum?

  • @Damian said: yum-3.2.29-22.el6.centos.2.noarch yum-metadata-parser-1.1.2-16.el6.i686 yum-plugin-fastestmirror-1.1.30-10.el6.noarch

    That is crazy talk!

    @Damian said: openssh-5.3p1-70.el6_2.2.i686 openssh-clients-5.3p1-70.el6_2.2.i686 openssh-server-5.3p1-70.el6_2.2.i686

    More crazy :) There are many in your list @Damian that will leave the system inoperable, which might be your goal, but I kind of doubt it.

  • JacobJacob Member
    edited December 2012

    Eh, you can use console if you have the use of the console in your control panel.

    But otherwise you're screwed.

    @miTgiB said: inoperable
    @miTgiB said: openssh-5.3p1-70.el6_2.2.i686 openssh-clients-5.3p1-70.el6_2.2.i686 openssh-server-5.3p1-70.el6_2.2.i686

  • Yeah those were not going anywhere.

  • @birdie25 said: you want to delete yum?

    @miTgiB said: More crazy :) There are many in your list @Damian that will leave the system inoperable, which might be your goal, but I kind of doubt it.

    Er I guess I should have stated originally. This list is what remains after paring down the 'unnecessary' packages.

  • I am really want to get the lowest possible space and memory usage out of centos for a web server.

  • @24khost said: I am really want to get the lowest possible space and memory usage out of centos for a web server.

    Why? Why do a mere few megabytes hurt so much? I can't tell if you're being serious.

  • I just don't want anything that is not needed in a minimum install.

  • @Jacob said: Eh, you can use console if you have the use of the console in your control panel.

    I double dog dare you to remove everything in that list and see if the system allows console access still

  • raindog308raindog308 Administrator, Veteran

    @24khost said: I just don't want anything that is not needed in a minimum install.

    I don't think you will find a recipe for that anywhere. You'll need to pare and setup yourself.

    Running minimally really isn't the CentOS mission, because it's not the RHEL mission.

    I'm not sure why you'd obsess over a few tens of megabytes of disk.

    For megabytes of memory, I understand, but you can turn stuff off and then it doesn't really matter if it's installed.

    Debian is more often used for lean-and-mean stripped-down setups.

  • @raindog308 but why can't we have a minimalist version of centos?

  • @24khost said: why can't we have a minimalist version of centos?

    I posted a minimalist version of centos. Remove any packages that are NOT in the list that I posted.

  • raindog308raindog308 Administrator, Veteran

    You can - it's just that you have to do it yourself. There's evidently little interest from the general Linux-using populace for such a thing or you'd probably have found it already.

  • @Damian thank you. I am currently removing unneeded stuff.

  • @gubbyte said: Why? Why do a mere few megabytes hurt so much? I can't tell if you're being serious.

    I get support tickets from Southeast Asian clients all the time who say they run CentOS 5.5 or 5.8 because of "less memory consumption" but they have more than enough RAM free.

  • One word Slackware. On a side note I did not know Centos took its clothing off. :P

Sign In or Register to comment.