]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - remote/sync/packages_debian.go
sync: never remove packages during installation on Debian
[safcm/safcm.git] / remote / sync / packages_debian.go
index 2e330b949368f68e5cb709d2769e70a9cb8f30b2..8f6b83ac31a04b1b182779e80456b94ec026a213 100644 (file)
@@ -1,6 +1,6 @@
 // MsgSyncReq: install packages on the remote host (Debian)
 
-// Copyright (C) 2021  Simon Ruderich
+// Copyright (C) 2021-2022  Simon Ruderich
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -59,6 +59,8 @@ func (s *Sync) syncPackagesDebian() error {
                // Don't require further acknowledgment; this won't perform
                // dangerous actions
                "--assume-yes",
+               // Never remove any packages
+               "--no-remove",
                // Don't perform upgrades
                "--no-upgrade",
                // Nobody needs those