a1ba76774f
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
29 lines
424 B
Go
29 lines
424 B
Go
package managers
|
|
|
|
// NewApt creates a new Manager instance.
|
|
func NewApt() *Manager {
|
|
return &Manager{
|
|
command: "apt-get",
|
|
flags: ManagerFlags{
|
|
clean: []string{
|
|
"clean",
|
|
},
|
|
global: []string{
|
|
"-y",
|
|
},
|
|
install: []string{
|
|
"install",
|
|
},
|
|
remove: []string{
|
|
"remove", "--auto-remove",
|
|
},
|
|
refresh: []string{
|
|
"update",
|
|
},
|
|
update: []string{
|
|
"dist-upgrade",
|
|
},
|
|
},
|
|
}
|
|
}
|