3
# Copyright (C) 2012-2019 Etersoft
4
# Copyright (C) 2012-2019 Vitaly Lipatov <lav@etersoft.ru>
6
# This program is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU Affero General Public License as published by
8
# the Free Software Foundation, either version 3 of the License, or
9
# (at your option) any later version.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU Affero General Public License for more details.
16
# You should have received a copy of the GNU Affero General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
20
load_helper epm-check_updated_repo
25
local APTOPTIONS="$(subst_option non_interactive -y)"
26
local DNFOPTIONS="$(subst_option non_interactive -y) $(subst_option verbose --verbose) "
29
#sudocmd apt-get check || exit
30
#sudocmd apt-get update || exit
31
sudocmd apt-get -f $APTOPTIONS install || return
32
info "You can use epm dedup also"
35
#sudocmd apt-get check || exit
36
#sudocmd apt-get update || exit
37
sudocmd apt-get -f $APTOPTIONS install || return
43
sudocmd aptitude -f $APTOPTIONS install || return
44
#sudocmd apt-get autoremove
47
docmd yum check $DNFOPTIONS
48
docmd package-cleanup --problems
50
#docmd package-cleanup --dupes
51
sudocmd package-cleanup --cleandupes
53
docmd rpm -Va --nofiles --nodigest
56
sudocmd dnf check $DNFOPTIONS
59
sudocmd revdep-rebuild
62
# sudocmd urpme --auto-orphans
65
sudocmd zypper $(subst_option non_interactive --non-interactive) verify
71
sudocmd pkg check -d -a
83
fatal "Have no suitable command for $PMTYPE"