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
a474ee57
Commit
a474ee57
authored
Mar 04, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix autoremove, check, clean
parent
e56ceb9b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
15 deletions
+28
-15
epm-autoremove
bin/epm-autoremove
+20
-3
epm-check
bin/epm-check
+2
-11
epm-clean
bin/epm-clean
+6
-1
No files found.
bin/epm-autoremove
View file @
a474ee57
...
...
@@ -29,12 +29,29 @@ case $PMTYPE in
aura
)
sudocmd aura
-Oj
;;
#yum-rpm)
# sudocmd yum clean all
# ;;
yum-rpm
)
# cleanup orphanes?
while
true
;
do
docmd package-cleanup
--leaves
# FIXME: package-cleanup have to use stderr for errors
local
PKGLIST
=
$(
package-cleanup
--leaves
|
grep
-v
"Loaded plugins"
|
grep
-v
"Unable to"
)
[
-n
"
$PKGLIST
"
]
||
break
sudocmd yum remove
$PKGLIST
done
;;
urpm-rpm
)
sudocmd urpme
--auto-orphans
;;
emerge
)
sudocmd emerge
--depclean
;;
pacman
)
sudocmd pacman
-Qdtq
| pacman
-Rs
-
;;
slackpkg
)
# clean-system removes non official packages
#sudocmd slackpkg clean-system
;;
#zypper-rpm)
# sudocmd zypper clean
# ;;
...
...
bin/epm-check
View file @
a474ee57
...
...
@@ -38,22 +38,13 @@ case $PMTYPE in
#docmd package-cleanup --dupes
sudocmd package-cleanup
--cleandupes
# cleanup orphanes?
while
true
;
do
docmd package-cleanup
--leaves
# FIXME: package-cleanup have to use stderr for errors
local
PKGLIST
=
$(
package-cleanup
--leaves
|
grep
-v
"Loaded plugins"
|
grep
-v
"Unable to"
)
[
-n
"
$PKGLIST
"
]
||
break
sudocmd yum remove
$PKGLIST
done
docmd rpm
-Va
--nofiles
--nodigest
;;
pacman
)
emerge
)
sudocmd revdep-rebuild
;;
urpm-rpm
)
sudocmd urpme
--auto-orphans
#
sudocmd urpme --auto-orphans
;;
zypper-rpm
)
sudocmd zypper verify
||
exit
...
...
bin/epm-clean
View file @
a474ee57
...
...
@@ -25,7 +25,7 @@ case $PMTYPE in
;;
yum-rpm
)
sudocmd yum clean all
sudocmd yum makecache
#
sudocmd yum makecache
;;
dnf-rpm
)
sudocmd dnf clean all
...
...
@@ -39,6 +39,11 @@ case $PMTYPE in
zypper-rpm
)
sudocmd zypper clean
;;
nix
)
sudocmd nix-collect-garbage
;;
slackpkg
)
;;
*
)
fatal
"Do not known command for
$PMTYPE
"
;;
...
...
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