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
Vladislav
eepm
Commits
6283491a
Commit
6283491a
authored
Jun 25, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve dnf support: add release-upgrade
parent
04411607
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
7 deletions
+30
-7
epm
bin/epm
+1
-1
epm-autoorphans
bin/epm-autoorphans
+8
-1
epm-autoremove
bin/epm-autoremove
+3
-3
epm-download
bin/epm-download
+5
-1
epm-release_upgrade
bin/epm-release_upgrade
+12
-0
epm-upgrade
bin/epm-upgrade
+1
-1
No files found.
bin/epm
View file @
6283491a
...
@@ -242,7 +242,7 @@ check_command()
...
@@ -242,7 +242,7 @@ check_command()
clean
)
# HELPCMD: clean local package cache
clean
)
# HELPCMD: clean local package cache
epm_cmd
=
clean
epm_cmd
=
clean
;;
;;
autoremove
)
# HELPCMD: auto remove unneeded package(s)
autoremove
|package-cleanup
)
# HELPCMD: auto remove unneeded package(s)
epm_cmd
=
autoremove
epm_cmd
=
autoremove
;;
;;
autoorphans|--orphans
)
# HELPCMD: remove all packages not from the repository
autoorphans|--orphans
)
# HELPCMD: remove all packages not from the repository
...
...
bin/epm-autoorphans
View file @
6283491a
...
@@ -36,6 +36,7 @@ case $PMTYPE in
...
@@ -36,6 +36,7 @@ case $PMTYPE in
warning
"Use with caution!"
warning
"Use with caution!"
local
PKGLIST
=
$(
__epm_orphan_altrpm
\
local
PKGLIST
=
$(
__epm_orphan_altrpm
\
|
sed
-e
"s/
\.
32bit//g"
\
|
sed
-e
"s/
\.
32bit//g"
\
|
grep
-v
--
"^eepm$"
\
|
grep
-v
--
"^kernel"
)
|
grep
-v
--
"^kernel"
)
docmd epm remove
$PKGLIST
docmd epm remove
$PKGLIST
;;
;;
...
@@ -49,7 +50,13 @@ case $PMTYPE in
...
@@ -49,7 +50,13 @@ case $PMTYPE in
# ;;
# ;;
yum-rpm
)
yum-rpm
)
showcmd package-cleanup
--orphans
showcmd package-cleanup
--orphans
local
PKGLIST
=
$(
package-cleanup
--orphans
)
local
PKGLIST
=
$(
package-cleanup
--orphans
|
grep
-v
"^eepm$"
)
docmd epm remove
$PKGLIST
;;
dnf-rpm
)
# TODO: dnf list extras
showcmd package-cleanup
--orphans
local
PKGLIST
=
$(
package-cleanup
--orphans
|
grep
-v
"^eepm$"
)
docmd epm remove
$PKGLIST
docmd epm remove
$PKGLIST
;;
;;
urpm-rpm
)
urpm-rpm
)
...
...
bin/epm-autoremove
View file @
6283491a
...
@@ -36,7 +36,7 @@ __epm_autoremove_altrpm()
...
@@ -36,7 +36,7 @@ __epm_autoremove_altrpm()
|
grep
-E
-v
--
"-(devel|debuginfo)$"
\
|
grep
-E
-v
--
"-(devel|debuginfo)$"
\
|
grep
-E
-v
--
"-(util|tool|plugin|daemon)"
\
|
grep
-E
-v
--
"-(util|tool|plugin|daemon)"
\
|
sed
-e
"s/
\.
32bit
$/
/g"
\
|
sed
-e
"s/
\.
32bit
$/
/g"
\
|
grep
-E
-v
--
"^(libsystemd|libreoffice|libnss)"
)
|
grep
-E
-v
--
"^(libsystemd|libreoffice|libnss
|eepm
)"
)
[
-n
"
$pkgs
"
]
&&
sudocmd rpm
-v
-e
$pkgs
&&
flag
=
1
[
-n
"
$pkgs
"
]
&&
sudocmd rpm
-v
-e
$pkgs
&&
flag
=
1
info
"Removing unused python/perl modules..."
info
"Removing unused python/perl modules..."
...
@@ -55,7 +55,7 @@ __epm_autoremove_altrpm()
...
@@ -55,7 +55,7 @@ __epm_autoremove_altrpm()
return
0
return
0
}
}
# TODO: keep our eepm package
epm_autoremove
()
epm_autoremove
()
{
{
...
@@ -82,7 +82,7 @@ case $PMTYPE in
...
@@ -82,7 +82,7 @@ case $PMTYPE in
while
true
;
do
while
true
;
do
docmd package-cleanup
--leaves
$(
subst_option non_interactive
--assumeyes
)
docmd package-cleanup
--leaves
$(
subst_option non_interactive
--assumeyes
)
# FIXME: package-cleanup have to use stderr for errors
# FIXME: package-cleanup have to use stderr for errors
local
PKGLIST
=
$(
package-cleanup
--leaves
|
grep
-v
"Loaded plugins"
|
grep
-v
"Unable to"
)
local
PKGLIST
=
$(
package-cleanup
--leaves
|
grep
-v
"Loaded plugins"
|
grep
-v
"Unable to"
|
grep
-v
"^eepm$"
)
[
-n
"
$PKGLIST
"
]
||
break
[
-n
"
$PKGLIST
"
]
||
break
sudocmd yum remove
$PKGLIST
sudocmd yum remove
$PKGLIST
done
done
...
...
bin/epm-download
View file @
6283491a
...
@@ -31,7 +31,11 @@ epm_download()
...
@@ -31,7 +31,11 @@ epm_download()
yum-rpm
)
yum-rpm
)
# TODO: check yum install --downloadonly --downloaddir=/tmp <package-name>
# TODO: check yum install --downloadonly --downloaddir=/tmp <package-name>
assure_exists yumdownloader yum-utils
assure_exists yumdownloader yum-utils
sudo
yumdownloader
$pkg_filenames
sudocmd yumdownloader
$pkg_filenames
;;
dnf-rpm
)
sudocmd dnf download
$pkg_filenames
;;
tce
)
tce
)
sudocmd tce-load
-w
$pkg_filenames
sudocmd tce-load
-w
$pkg_filenames
;;
;;
...
...
bin/epm-release_upgrade
View file @
6283491a
...
@@ -221,6 +221,18 @@ epm_release_upgrade()
...
@@ -221,6 +221,18 @@ epm_release_upgrade()
showcmd rpm
-Uvh
http://mirror.yandex.ru/fedora/linux/releases/16/Fedora/x86_64/os/Packages/fedora-release-16-1.noarch.rpm
showcmd rpm
-Uvh
http://mirror.yandex.ru/fedora/linux/releases/16/Fedora/x86_64/os/Packages/fedora-release-16-1.noarch.rpm
docmd epm Upgrade
docmd epm Upgrade
;;
;;
dnf-rpm
)
info
"Check https://fedoraproject.org/wiki/DNF_system_upgrade for an additional info"
docmd epm
install
dnf
sudocmd dnf clean all
assure_exists dnf-plugin-system-upgrade
sudocmd dnf system-upgrade
local
RELEASEVER
=
"
$pkg_filenames
"
[
-n
"
$RELEASEVER
"
]
||
fatal
"Run me with new version"
sudocmd dnf system-upgrade download
--refresh
--releasever
=
$RELEASEVER
sudocmd dnf system-upgrade
info
"Run epm autoorphans to remove orphaned packages"
;;
urpm-rpm
)
urpm-rpm
)
sudocmd urpmi.removemedia
-av
sudocmd urpmi.removemedia
-av
# TODO
# TODO
...
...
bin/epm-upgrade
View file @
6283491a
...
@@ -44,7 +44,7 @@ epm_upgrade()
...
@@ -44,7 +44,7 @@ epm_upgrade()
CMD
=
"yum update"
CMD
=
"yum update"
;;
;;
dnf-rpm
)
dnf-rpm
)
CMD
=
"dnf
update
"
CMD
=
"dnf
distro-sync
"
;;
;;
snappy
)
snappy
)
CMD
=
"snappy update"
CMD
=
"snappy update"
...
...
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