3
# Copyright (C) 2012-2020 Etersoft
4
# Copyright (C) 2012-2020 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/>.
21
epm_print_install_files_command()
23
# print out low level command by default (wait --low-level for control it)
24
#[ -z "$1" ] && return
25
[ -z "$1" ] && [ -n "$pkg_names" ] && return
28
echo "rpm -Uvh --force $nodeps $*"
40
# need be placed in /usr/portage/packages/somewhere
41
echo "emerge --usepkg $*"
44
echo "pacman -U --noconfirm $nodeps $*"
47
echo "/sbin/installpkg $*"
50
echo "npackdcl add --package=$*"
53
echo "opkg install $*"
56
echo "eopkg install $*"
65
echo "apt-cyg install $*"
68
echo "tce-load -wi $*"
71
echo "xbps-install -y $*"
74
echo "$PMTYPE install -s $*"
77
# FIXME: sudo and quote
78
echo "brew install $*"
82
fatal "Have no suitable appropriate install command for $PMTYPE"
87
epm_print_install_names_command()
89
# check for pkg_files to support print out command without pkg names in args
90
#[ -z "$1" ] && [ -n "$pkg_files" ] && return
94
echo "apt-get -y --force-yes -o APT::Install::VirtualVersion=true -o APT::Install::Virtual=true $APTOPTIONS install $*"
97
# this command not for complex use. ACCEPT_EULA=y DEBIAN_FRONTEND=noninteractive
98
echo "apt-get -y --force-yes -o APT::Install::VirtualVersion=true -o APT::Install::Virtual=true $APTOPTIONS install $*"
101
echo "aptitude -y install $*"
104
echo "yum -y $YUMOPTIONS install $*"
107
echo "dnf -y $YUMOPTIONS --allowerasing install $*"
110
echo "urpmi --auto $URPMOPTIONS $*"
113
echo "zypper --non-interactive $ZYPPEROPTIONS install $*"
116
echo "pkcon --noninteractive $*"
119
echo "pacman -S --noconfirm $*"
122
echo "choco install $*"
125
echo "nix-env --install $*"
128
echo "eopkg install $*"
131
echo "pkg install $*"
134
echo "$PMTYPE install $*"
137
fatal "Have no suitable appropriate install command for $PMTYPE"