Skip to content

Commit

Permalink
add dnf support
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Sep 1, 2015
1 parent ddc6f2f commit e622f90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/install_packages
Expand Up @@ -5,7 +5,7 @@
# install_packages -- read package config and install packages via apt-get
#
# This script is part of FAI (Fully Automatic Installation)
# (c) 2000-2011, Thomas Lange, lange@informatik.uni-koeln.de
# (c) 2000-2015, Thomas Lange, lange@informatik.uni-koeln.de
# (c) 2003-2004, Henning Glawe, glaweh@physik.fu-berlin.de
# (c) 2004 , Jonas Hoffmann, jhoffman@physik.fu-berlin.de
# PRELOAD feature from Thomas Gebhardt <gebhardt@hrz.uni-marburg.de>
Expand Down Expand Up @@ -67,7 +67,7 @@ $| = 1;


# @commands is the order of the commands that are executed
our @commands = qw/y2i y2r zypper zypper-rm yast rpmr urpmi urpme yumgroup yumi yumr smarti smartr hold taskrm taskinst clean-internal cupt cupt-r aptitude aptitude-r install unpack remove dselect-upgrade/;
our @commands = qw/y2i y2r zypper zypper-rm yast rpmr urpmi urpme yumgroup yumi yumr dnfgroup dnfi dnfr smarti smartr hold taskrm taskinst clean-internal cupt cupt-r aptitude aptitude-r install unpack remove dselect-upgrade/;
%command = (
"install" => "apt-get $aptopt --fix-missing install",
"inst-internal" => "apt-get $aptopt --fix-missing -s install",
Expand All @@ -90,6 +90,9 @@ our @commands = qw/y2i y2r zypper zypper-rm yast rpmr urpmi urpme yumgroup yumi
"yumi" => "yum -y install",
"yumr" => "yum -y remove",
"yumgroup" => "yum -y groupinstall",
"dnfi" => "dnf -y install",
"dnfr" => "dnf -y remove",
"dnfgroup" => "dnf -y group install",
"y2i" => "y2pmsh isc",
"y2r" => "y2pmsh remove",
"yast" => "yast -i",
Expand Down

0 comments on commit e622f90

Please sign in to comment.