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
48ffe670
Commit
48ffe670
authored
Nov 12, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autoremove: small improvement
parent
579018e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
epm-autoremove
bin/epm-autoremove
+11
-4
No files found.
bin/epm-autoremove
View file @
48ffe670
...
@@ -69,12 +69,12 @@ __epm_autoremove_altrpm_lib()
...
@@ -69,12 +69,12 @@ __epm_autoremove_altrpm_lib()
local
force
=
force
local
force
=
force
local
flag
=
local
flag
=
local
lib
exclude
=
'^(lib|i586-
lib)'
local
lib
grep
=
'^(lib|i586-lib|bzlib|z
lib)'
[
-n
"
$force
"
]
||
libexclude
=
$lib
exclude
'[^-]*$'
[
-n
"
$force
"
]
||
libexclude
=
$lib
grep
'[^-]*$'
# https://www.altlinux.org/APT_в_ALT_Linux/Советы_по_использованию#apt-cache_list-nodeps
# https://www.altlinux.org/APT_в_ALT_Linux/Советы_по_использованию#apt-cache_list-nodeps
showcmd
"apt-cache list-nodeps | grep -E --
\"
$lib
exclude
\"
"
showcmd
"apt-cache list-nodeps | grep -E --
\"
$lib
grep
\"
"
pkgs
=
$(
apt-cache list-nodeps |
grep
-E
--
"
$lib
exclude
"
\
pkgs
=
$(
apt-cache list-nodeps |
grep
-E
--
"
$lib
grep
"
\
|
sed
-e
"s/[-
\.
]32bit
$/
/g"
\
|
sed
-e
"s/[-
\.
]32bit
$/
/g"
\
|
grep
-E
-v
--
"
$develrule
"
\
|
grep
-E
-v
--
"
$develrule
"
\
|
grep
-E
-v
--
"-(debuginfo)$"
\
|
grep
-E
-v
--
"-(debuginfo)$"
\
...
@@ -87,6 +87,13 @@ __epm_autoremove_altrpm_lib()
...
@@ -87,6 +87,13 @@ __epm_autoremove_altrpm_lib()
return
0
return
0
fi
fi
# commented, with hi probability user install i586- manually
# workaround against missed i586- handling in apt-cache list-nodeps
if
epmqp i586-lib
>
/dev/null
;
then
info
"You can try removing i586- with follow command"
showcmd rpm
-v
-e
$(
epmqp i586-lib
)
fi
[
-n
"
$pkgs
"
]
&&
sudocmd rpm
-v
-e
$pkgs
&&
flag
=
1
[
-n
"
$pkgs
"
]
&&
sudocmd rpm
-v
-e
$pkgs
&&
flag
=
1
if
[
-n
"
$flag
"
]
;
then
if
[
-n
"
$flag
"
]
;
then
...
...
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