Skip to content

Commit

Permalink
vm: do not install recommended packages
Browse files Browse the repository at this point in the history
  • Loading branch information
LaszloGombos committed Nov 19, 2023
1 parent 0f4b7f6 commit 9b64751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions environment/vm/lima/deb/mantic.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (m *Mantic) URIs(_ environment.Arch) ([]string, error) {

output := ""
for _, p := range manticPackages {
line := fmt.Sprintf(`sudo apt-get install --reinstall --print-uris -qq "%s" | cut -d"'" -f2`, p)
line := fmt.Sprintf(`sudo apt-get install --reinstall --no-install-recommends --print-uris -qq "%s" | cut -d"'" -f2`, p)
out, err := m.Guest.RunOutput("sh", "-c", line)
if err != nil {
return nil, fmt.Errorf("error fetching dependencies list: %w", err)
Expand All @@ -57,5 +57,5 @@ func (m *Mantic) URIs(_ environment.Arch) ([]string, error) {

// Install implements URISource.
func (m *Mantic) Install() error {
return m.Guest.Run("sh", "-c", "sudo apt update && sudo apt install -f -y "+strings.Join(manticPackages, " "))
return m.Guest.Run("sh", "-c", "sudo apt update && sudo apt install --no-install-recommends -f -y "+strings.Join(manticPackages, " "))
}

0 comments on commit 9b64751

Please sign in to comment.