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
278103e7
Commit
278103e7
authored
May 23, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autoorphans/autoremove: improve excludes
parent
725f623c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
epm-autoorphans
bin/epm-autoorphans
+1
-1
epm-autoremove
bin/epm-autoremove
+3
-3
No files found.
bin/epm-autoorphans
View file @
278103e7
...
...
@@ -34,7 +34,7 @@ case $PMTYPE in
assure_exists /etc/buildreqs/files/ignore.d/apt-scripts apt-scripts
echo
"We will try remove all installed packages which are missed in repositories"
warning
"Use with caution!"
local
PKGLIST
=
$(
__epm_orphan_altrpm |
sed
-e
"s/
\.
32bit//g"
)
local
PKGLIST
=
$(
__epm_orphan_altrpm |
sed
-e
"s/
\.
32bit//g"
|
grep
-v
--
"^kernel"
)
docmd epm remove
$PKGLIST
;;
apt-dpkg|aptitude-dpkg
)
...
...
bin/epm-autoremove
View file @
278103e7
...
...
@@ -33,10 +33,10 @@ __epm_autoremove_altrpm()
# https://www.altlinux.org/APT_в_ALT_Linux/Советы_по_использованию#apt-cache_list-nodeps
showcmd
"apt-cache list-nodeps | grep --
\"
$libexclude
\"
"
pkgs
=
$(
apt-cache list-nodeps |
grep
--
"
$libexclude
"
|
\
grep
-
v
--
"-devel$"
|
grep
-v
--
"-debuginfo
$"
|
\
grep
-
v
--
"-util"
|
grep
-v
--
"-tool"
|
grep
-v
--
"-plugin
"
|
\
grep
-
E
-v
--
"-(devel|debuginfo)
$"
|
\
grep
-
E
-v
--
"-(util|tool|plugin|daemon)
"
|
\
sed
-e
"s/
\.
32bit
$/
/g"
|
\
grep
-
v
--
^libreoffice |
grep
-v
--
libnss- |
grep
-v
--
libvirt-daemon
)
grep
-
E
-v
--
"^(libsystemd|libreoffice|libnss)"
)
[
-n
"
$pkgs
"
]
&&
sudocmd rpm
-v
-e
$pkgs
&&
flag
=
1
info
"Removing unused python/perl modules..."
...
...
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