Thomas Hipp d00cfc5b70
managers: Add dnf support
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-26 18:19:42 +02:00

29 lines
408 B
Go

package managers
// NewDnf creates a new Manager instance.
func NewDnf() *Manager {
return &Manager{
command: "dnf",
flags: ManagerFlags{
global: []string{
"-y",
},
install: []string{
"install",
},
remove: []string{
"remove",
},
refresh: []string{
"makecache",
},
update: []string{
"upgrade",
},
clean: []string{
"clean", "all",
},
},
}
}