OpenVZ Forum


Home » International » Russian » yum для Centos 5.5
Re: yum для Centos 5.5 [message #40482 is a reply to message #40462] Sun, 22 August 2010 16:17 Go to previous messageGo to previous message
RXL_ is currently offline  RXL_
Messages: 147
Registered: July 2009
Location: Moscow/Russia
Senior Member
Обещанный скрипт.
Но скрипт не мой - я только разместил и слегка подрихтовал. Wink

Удаление пакетов и обновление:
#!/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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Настройка 3 сетевки, 2 локалки, интернет
Next Topic: Использование процессорного времени.
Goto Forum:
  


Current Time: Thu Oct 03 06:27:41 GMT 2024

Total time taken to generate the page: 0.05293 seconds