Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
4602adc5
Commit
4602adc5
authored
Feb 13, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-release_upgrade: add support for migrate from CentOS/8 to RockyLinux/8
parent
489108a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
epm-release_upgrade
bin/epm-release_upgrade
+20
-3
No files found.
bin/epm-release_upgrade
View file @
4602adc5
...
...
@@ -494,10 +494,27 @@ epm_release_upgrade()
showcmd epm Upgrade
;;
dnf-rpm
)
info
"Check https://fedoraproject.org/wiki/DNF_system_upgrade for an additional info"
docmd epm
install
dnf
if
[
"
$DISTRNAME
/
$DISTRVERSION
"
=
"CentOS/8"
]
;
then
if
[
"
$1
"
=
"RockyLinux"
]
;
then
info
"Check https://www.cyberciti.biz/howto/migrate-from-centos-8-to-rocky-linux-conversion/"
confirm_info
"Switch to Rocky Linux 8.x"
cd
/tmp
git clone https://github.com/rocky-linux/rocky-tools.git
||
fatal
a
=
bash rocky-tools/migrate2rocky/migrate2rocky.sh
-r
exit
fi
info
"Check https://www.cyberciti.biz/howto/upgrade-migrate-from-centos-8-to-centos-stream-conversion/"
confirm_info
"Switch to CentOS Stream?"
docmd epm
install
centos-release-stream
sudocmd dnf swap centos-
{
linux,stream
}
-repos
sudocmd dnf distro-sync
info
"You can run '# epm autoorphans' to remove orphaned packages"
exit
fi
info
"Check https://fedoraproject.org/wiki/DNF_system_upgrade for an additional info"
#docmd epm install epel-release yum-utils
sudocmd dnf
--refresh
upgrade
sudocmd dnf
--refresh
upgrade
||
fatal
sudocmd dnf clean all
assure_exists dnf-plugin-system-upgrade
sudocmd dnf upgrade
--refresh
...
...
@@ -510,7 +527,7 @@ epm_release_upgrade()
# dnf system-upgrade reboot
# FIXME: download all packages again
sudocmd dnf distro-sync
--releasever
=
$RELEASEVER
info
"
Run epm autoorphans
to remove orphaned packages"
info
"
You can run '# epm autoorphans'
to remove orphaned packages"
;;
urpm-rpm
)
sudocmd urpmi.removemedia
-av
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment