add refresh repo, change permission

repo needs to be refreshed to check which packages need updating
changing permissions to 644 doesn't work since it doesn't allow to open folder.