-
Notifications
You must be signed in to change notification settings - Fork 0
/
os_pre-upgrade
executable file
·68 lines (52 loc) · 2.37 KB
/
os_pre-upgrade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
mkdir -p etc/init
echo "# upgrade - tell vzctl that start was successfull
#
# This task causes to tell vzctl that start was successfull
description \"tell vzctl that start was successfull\"
start on startup
task
exec echo 2 > /.vzfifo
" > etc/init/upgrade.conf
# Hack for /sbin/service post-install glibc execution
rm -f sbin/service
ln -s /bin/true sbin/service
rpm -e --nodeps --allmatches sendmail-doc >/dev/null 2>&1
rpm -e --nodeps --allmatches samba-swat >/dev/null 2>&1
rpm -e --nodeps --allmatches rhpl >/dev/null 2>&1
rpm -e --nodeps --allmatches centos-release >/dev/null 2>&1
rpm -e --nodeps --allmatches centos-release-notes >/dev/null 2>&1
rpm -e --nodeps --allmatches perl-Net-IP >/dev/null 2>&1
rpm -e --nodeps --allmatches openssl-perl >/dev/null 2>&1
rpm -e --nodeps --allmatches device-mapper >/dev/null 2>&1
rpm -e --nodeps --allmatches curl >/dev/null 2>&1
rpm -e --nodeps --allmatches expect >/dev/null 2>&1
rpm -e --nodeps --allmatches hesiod >/dev/null 2>&1
rpm -e --nodeps --allmatches mysql >/dev/null 2>&1
rpm -e --nodeps --allmatches --justdb nss >/dev/null 2>&1
# Proftpd part
rpm -e --nodeps --allmatches proftpd >/dev/null 2>&1
# Java part
rpm -e --nodeps --allmatches jakarta-commons-modeler >/dev/null 2>&1
rpm -e --nodeps --allmatches mx >/dev/null 2>&1
rpm -e --nodeps --allmatches java-1.4.2-gcj-compat >/dev/null 2>&1
rpm -e --nodeps --allmatches java-1.4.2-gcj-compat-devel >/dev/null 2>&1
# Devel part
rpm -e --nodeps --allmatches gd-devel >/dev/null 2>&1
rpm -e --nodeps --allmatches expect-devel >/dev/null 2>&1
rpm -e --nodeps --allmatches slang-devel >/dev/null 2>&1
rpm -e --nodeps --allmatches hesiod-devel >/dev/null 2>&1
rpm -e --nodeps --allmatches sendmail-devel >/dev/null 2>&1
rpm -e --nodeps --allmatches elfutils-libelf-devel >/dev/null 2>&1
rpm -e --nodeps --allmatches elfutils-devel-static >/dev/null 2>&1
rpm -e --nodeps --allmatches elfutils-libelf-devel-static >/dev/null 2>&1
rpm -e --nodeps --allmatches newt-devel >/dev/null 2>&1
# Php part
rpm -e --nodeps --allmatches php-devel >/dev/null 2>&1
rpm -e --nodeps --allmatches php-mbstring >/dev/null 2>&1
rpm -e --nodeps --allmatches php-imap >/dev/null 2>&1
rpm -e --nodeps --allmatches php-ncurses >/dev/null 2>&1
rpm -e --nodeps --allmatches php-mbstring >/dev/null 2>&1
rpm -e --nodeps --allmatches php-snmp >/dev/null 2>&1
rpm -e --nodeps --allmatches perl-Archive-Tar >/dev/null 2>&1
: