Ask Your Question
0

package ensure latest dpkg semantics

asked 2013-10-11 02:55:28 -0600

mR_fr0g gravatar image

if I have something like this

 package { "${package_name}":
        provider => dpkg,
        ensure => latest,
        source => "${target_dir}/${target_name}",
    }

And there is a new version to be installed, will this be performed as an uninstall then install?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-10-11 04:32:01 -0600

gertvdijk gravatar image

It will be performed like any other upgrade using the Debian package management tools.

Puppet will run a dpkg -i packagename_$version.deb which will upgrade the package if an older version is already installed. This is because the dpkg provider of the package type supports upgrades (upgradeable) of packages and you specified the ensure => latest.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-10-11 02:55:28 -0600

Seen: 91 times

Last updated: Oct 11 '13