We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 648b411 commit 5613f84Copy full SHA for 5613f84
apt.go
@@ -142,6 +142,12 @@ func UpgradeAll() (output []byte, err error) {
142
return cmd.CombinedOutput()
143
}
144
145
+// DistUpgrade upgrades all upgradable packages, it may remove older versions to install newer ones.
146
+func DistUpgrade() (output []byte, err error) {
147
+ cmd := exec.Command("apt-get", "dist-upgrade", "-y")
148
+ return cmd.CombinedOutput()
149
+}
150
+
151
// Remove removes a set of packages
152
func Remove(packs ...*Package) (output []byte, err error) {
153
args := []string{"remove", "-y"}
0 commit comments