You want to install a package if it’s not present and track and upgrade the version if it is.
package { "screen":
ensure => "latest"
}
Sometimes just having a package present isn’t enough, you also want to ensure it stays up to date. By specifying ‘latest’ Puppet will install a package if absent and upgrade the package to newer versions when they become available. This last part is where latest differs from ‘installed’.