code: public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
      {
          $this->uninstall($repo, $initial);
          $this->install($repo, $target);
      }
docs: {@inheritDoc}