File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ echo '
3
+ [upg]
4
+ name=CentOS-$releasever - Upgrade Tool
5
+ baseurl=http://dev.centos.org/centos/6/upg/x86_64/
6
+ gpgcheck=1
7
+ enabled=1
8
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
9
+ ' >> /etc/yum.repos.d/upgradetool.repo
10
+ echo '
11
+ #!/bin/bash
12
+ ln -s /usr/lib64/libsasl2.so.3.0.0 /usr/lib64/libsasl2.so.2
13
+ ln -s /usr/lib64/libpcre.so.1.2.0 /usr/lib64/libpcre.so.0
14
+ service sshd restart
15
+ yum upgrade sos -y
16
+ yum downgrade grep -y
17
+ yum remove python-argparse* python-iwlib* redhat-upgrade-tool* -y
18
+ yum upgrade python* -y
19
+ yum upgrade -y
20
+ yum update -y
21
+ echo "" > /etc/rc.d/rc.local
22
+ rm -rf /root/start.sh
23
+ ' > start.sh
24
+ chmod +x start.sh
25
+ chmod +x /etc/rc.d/rc.local
26
+ echo ' bash /root/start.sh' >> /etc/rc.d/rc.local
27
+ yum install redhat-upgrade-tool preupgrade-assistant-contents -y
28
+ yum erase openscap -y
29
+ yum install http://dev.centos.org/centos/6/upg/x86_64/Packages/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm -y
30
+ yum install redhat-upgrade-tool preupgrade-assistant-contents -y
31
+ preupg -s CentOS6_7 << EOF
32
+ y
33
+ EOF
34
+ rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-7
35
+ centos-upgrade-tool-cli --network 7 --instrepo=http://vault.centos.org/centos/7.2.1511/os/x86_64/ << EOF
36
+ y
37
+ EOF
38
+ reboot
You can’t perform that action at this time.
0 commit comments