latence

Script Minimal Install Debian 7 dan Ubuntu 14.04

Ditulis oleh Beri komentar Lihat komentar

Just a quick note. Terkadang instalasi server berbasis Debian 7 dan Ubuntu 14.04 menggunakan space yang besar. Padahal tidak semua package yang terinstal di server akan terpakai semuanya. Oleh karena itu, saya biasanya akan melakukan clean up package yang jarang terpakai tersebut dengan one-liner command berikut ini.

Script Minimal Install Debian 7

DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common bind9 bind9-host bind9utils binutils bsd-mailx bsdmainutils bzip2 ca-certificates console-common console-data cracklib-runtime db-util db5.1-util expat fetchmail file finger fontconfig fontconfig-config fonts-freefont-ttf ftp gettext groff-base info install-info iputils-arping iputils-tracepath isc-dhcp-client isc-dhcp-common kbd ldap-utils less libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapt-inst1.5 libavahi-client3 libavahi-common-data libavahi-common3 libbind9-80 libcap2 libcrack2 libcroco3 libcups2 libdns88 libfile-copy-recursive-perl libfontconfig1 libfreetype6 libgeoip1 libgettextpo0 libgomp1 libgssglue1 libisc84 libisccc80 libisccfg82 liblockfile-bin liblockfile1 libltdl7 liblwres80 libmagic1 libodbc1 libpaper1 libpcap0.8 libperl5.14 libpipeline1 libpopt0 libsensors4 libsnmp-base libsnmp15 libsysfs2 libtalloc2 libtdb1 libtirpc1 libunistring0 libwbclient0 libxml2 locales-all lynx lynx-cur m4 make man-db manpages memtester mlocate mtools ncurses-term odbcinst odbcinst1debian2 procmail psutils pwgen rmail rpcbind rsync sasl2-bin sendmail sendmail-base sendmail-bin sendmail-cf sendmail-doc sensible-mda sharutils snmp ssl-cert syslinux syslinux-common tcpdump tcsh telnet tofrodos ttf-dejavu ttf-dejavu-core ttf-dejavu-extra ttf-freefont unixodbc unzip update-inetd uuid-runtime whois wide-dhcpv6-client xinetd; apt-get clean; apt-get remove --purge -y sendmail-base ; apt-get autoremove

Script Minimal Install Ubuntu 14.04

DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" apache2 apache2-bin apache2-data apache2-doc apache2-mpm-prefork apache2-utils bind9 bind9-host bind9utils bsdmainutils bzip2 fetchmail file finger fontconfig fontconfig-config fonts-dejavu fonts-dejavu-core fonts-dejavu-extra fonts-freefont-ttf keyboard-configuration ldap-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libapt-inst1.5 libavahi-client3 libavahi-common-data libavahi-common3 libbind9-90 libbsd0 libcrack2 libcroco3 libcups2 libfile-copy-recursive-perl libfontconfig1 libfreetype6 libgeoip1 libglib2.0-0 libgmp10 libgomp1 libgssglue1 libhdb9-heimdal libisc95 libisccc90 libisccfg90 libkdc2-heimdal libldb1 liblockfile-bin liblockfile1 libltdl7 liblwres90 libmagic1 libntdb1 libodbc1 libpaper1 libpcap0.8 libperl5.18 libpipeline1 libpopt0 libpython-stdlib libsensors4 libsnmp-base libsnmp30 libtalloc2 libtdb1 libtevent0 libtirpc1 libunistring0 libwbclient0 libxml2 make man-db manpages ncurses-term openssl openssl-blacklist postfix procmail sasl2-bin sharutils snmp tcpdump tcsh tdb-tools tofrodos ttf-dejavu ttf-dejavu-core ttf-dejavu-extra ttf-freefont unixodbc xinetd xkb-data; apt-get clean

Silakan copas di konsol SSH, kemudian restart. Hasilnya free space yang tersedia akan bertambah, dan kinerja server lebih ringan.

Kalo ada masalah, misalnya server tidak dapat booting, atau tidak dapat di akses menggunakan SSH, monggo silakan re-install.

Do it with your own risks! :)

 


Incoming keywords

cara bsdmainutils


Related Posts

Filed under

Linux

| Tags:

, ,

Leave a Comment