Обещанный скрипт.
Но скрипт не мой - я только разместил и слегка подрихтовал.
Удаление пакетов и обновление:
#!/bin/sh
yum remove samba-client samba-swat samba-common samba aspell aspell-en bind caching-nameserver cups-libs lm_sensors finger-server net-snmp net-snmp-utils finger vim-common vim-enhanced httpd net-snmp-libs lynx sendmail-doc apr apr-util dhclient gpm dbus dbus-libs gpm libjpeg libpng libtiff portmap postgresql-libs sharutils talk talk-server tcsh
yum install mc logwatch
yum update
Удаление файлов:
#!/bin/sh
df -h
##part one
ls /usr/lib/locale | \
grep -v "ru_RU" | \
grep -v "ru_RU.utf8" | \
grep -v "en_US" | \
grep -v "en_US.utf8" | \
grep -v "locale-archive" | \
grep -v "locale-archive-rpm" > /tmp/localeclean.tmp
for i in `cat /tmp/localeclean.tmp`
do
rm -rf /usr/lib/locale/$i
done
rm -f /tmp/localeclean.tmp
#part two
ls /usr/share/man | \
grep -v "ru" | \
grep -v "en" | \
grep -v man > /tmp/localeclean.tmp
for i in `cat /tmp/localeclean.tmp`
do
rm -rf /usr/share/man/$i
done
rm -f /tmp/localeclean.tmp
#others:
rm -rf \
/usr/share/locale/* \
/usr/share/doc/* \
/usr/share/gnome/help
yum clean all
df -h
[Updated on: Sun, 22 August 2010 16:20]
Report message to a moderator