Debian multiarch

235 views
Skip to first unread message

Vincent Reydet

unread,
Aug 9, 2013, 5:05:55 AM8/9/13
to puppet...@googlegroups.com
Hi,

I used to install the "ia32-libs" package for debian Squeeze.

Things change with debian Wheezy and now this package doesn't exist anymore.
Here is the new procedure:

dpkg --add-architecture i386 # enable multi-arch
apt-get update
apt-get install libc6:i386 # install base 32bit libraries

How can I do the "dpkg --add-architecture i386" properly with puppet ?

Thanks,

Vincent

Rudy Gevaert

unread,
Aug 9, 2013, 10:55:29 AM8/9/13
to puppet...@googlegroups.com
if($::lsbdistcodename == 'wheezy')
{
exec {
'add-i386':
command => '/usr/bin/dpkg --add-architecture i386',
unless => '/usr/bin/dpkg --print-foreign-architectures |
/bin/grep i386'
}
}


Reply all
Reply to author
Forward
0 new messages