apt-get installing packages with dependencies

28 views
Skip to first unread message

Puppet Muppet

unread,
Nov 17, 2013, 11:15:42 AM11/17/13
to puppet...@googlegroups.com
Hi,

I'm having trouble installing packages that have dependencies. (I can install packages like zip fine.)

for example I would like to install s3cmd.
Installing from command line I would run.
#apt-get -y -o APT::Install-Suggests="true" install s3cmd
which will install python-support & s3cmd.

My init.pp files looks like this 

###
class build {
file {'/home/ubuntu/puppet-test-build-mod-1':
  ensure  => present,
  content => "Hello World!",
    }
}

      package { 's3cmd':
        ensure => installed,
      }


##

Is there any way to force the installation of a packages that has dependencies?


Many thanks,
PM

Ramin K

unread,
Nov 17, 2013, 1:46:24 PM11/17/13
to puppet...@googlegroups.com
The source of your problem is unlikely to be Puppet. If you apply your
package statement the package provider should run

/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install s3cmd

and your apt/history.log should show

Start-Date: 2013-11-17 06:34:25
Commandline: /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold
install s3cmd
Install: python-support:amd64 (1.0.14ubuntu2, automatic), s3cmd:amd64
(1.0.0-1)
End-Date: 2013-11-17 06:34:26

Ramin
Reply all
Reply to author
Forward
0 new messages