         for package in addedPackages {
             try removePackage(named: package.name)
         }
+
+        try updatePackages()
     }
 
     func makePackageDescription(for script: Script) throws -> String {

                                  orThrow: Error.failedToReadPackageFile(name))

        try perform(packageFile.delete(), orThrow: Error.failedToRemovePackage(name, folder))
        try updatePackages()

        return package
    }

        }
    }

    @discardableResult func removePackage(named name: String, shouldUpdatePackages: Bool = true) throws -> Package {
        print("Removing \(name)...")

        let packageFile = try perform(folder.file(named: name),
