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
etersoft
eepm
Commits
50758111
Commit
50758111
authored
Jan 21, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm release-upgrade: add support for RockyLinux
parent
17b7c21d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
epm-release_upgrade
bin/epm-release_upgrade
+23
-0
No files found.
bin/epm-release_upgrade
View file @
50758111
...
...
@@ -538,6 +538,29 @@ epm_release_upgrade()
info
"You can run '# epm autoorphans' to remove orphaned packages"
exit
fi
if
[
"
$1
"
=
"RockyLinux"
]
;
then
sudocmd dnf
--refresh
upgrade
||
fatal
sudocmd dnf clean all
info
"Check https://www.centlinux.com/2022/07/upgrade-your-servers-from-rocky-linux-8-to-9.html"
info
"For upgrading your yum repositories from Rocky Linux 8 to 9 ..."
epm
install
"https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys*.rpm"
||
fatal
epm
install
"epmi https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-repos*.rpm"
"https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/r/rocky-release*.rpm"
||
fatal
# hack (TODO)
DV
=
$(
echo
"
$DISTRVERSION
"
|
sed
-e
"s|
\.
.*||"
)
local
RELEASEVER
=
"
$1
"
[
-n
"
$RELEASEVER
"
]
||
RELEASEVER
=
$((
$DV
+
1
))
confirm_info
"Upgrade to
$DISTRNAME
/
$RELEASEVER
"
sudocmd dnf
-y
--releasever
=
$RELEASEVER
--allowerasing
--setopt
=
deltarpm
=
false
distro-sync
sudocmd rpm
--rebuilddb
epm upgrade
info
"You can run '# epm autoorphans' to remove orphaned packages"
info
"Use # dnf module reset <module> to resolve 'nothing provides module' error"
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
||
fatal
...
...
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