diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index ae81ab0..5b15482 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -383,6 +383,9 @@ class Rbpkg::Repo
def upgrade
pull
return if installed_version == version
+ package
+ uninstall
+ install
end
def version