d00cfc5b70
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
29 lines
408 B
Go
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",
|
|
},
|
|
},
|
|
}
|
|
}
|