update a package