-
Notifications
You must be signed in to change notification settings - Fork 2
/
scilitocent7.sh
20 lines (19 loc) · 905 Bytes
/
scilitocent7.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
cd /
mkdir TMP
cd TMP
wget http://mirror.centos.org/centos/7.9.2009/os/x86_64/Packages/centos-release-7-9.2009.0.el7.centos.x86_64.rpm
wget http://mirror.centos.org/centos/7.9.2009/os/x86_64/Packages/centos-indexhtml-7-9.el7.centos.noarch.rpm
wget http://mirror.centos.org/centos/7.9.2009/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm
wget http://mirror.centos.org/centos/7.9.2009/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm
wget http://mirror.centos.org/centos/7.9.2009/os/x86_64/Packages/centos-logos-70.0.6-3.el7.centos.noarch.rpm
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes* -y
rpm -e --nodeps sl-bookmarks SL_desktop_tweaks sl-indexhtml sl-release sl-release-notes yum-conf-sl6x
rpm -Uvh --force *.rpm
cd ..
rm -rf TMP
rm -f /etc/yum.repos.d/sl.repo /etc/yum.repos.d/sl-other.repo
cd /etc
etckeeper commit
yum clean all
yum upgrade -y