help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debian package management with cfengine


From: Russell Adams
Subject: Re: Debian package management with cfengine
Date: Mon, 21 Mar 2005 12:17:28 -0600
User-agent: Mutt/1.4.2.1i

I use alot more than just the noninteractive, here are a few choice
snips from my configs that show all the settings I've had to use to
keep apt quiet during installations.

These are based on archived posts you can view at:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-8&threadm=mailman.1479.1065791230.21628.help-cfengine%40gnu.org&rnum=2&prev=/groups%3Fq%3Ddpkg%2Bcfengine%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3Dutf-8%26selm%3Dmailman.1479.1065791230.21628.help-cfengine%2540gnu.org%26rnum%3D2

--------------------------------------------------------------------

editfiles:

        ConfigureApt.debian::

                ############################################################
                # Forget debconf, don't use it.
                { /etc/apt/apt.conf.d/70debconf

                CommentLinesStarting "DPkg::Pre-Install-Pkgs"
                }

                ############################################################
                # Dpkg options for config files.
                { /etc/dpkg/dpkg.cfg

                AutoCreate
                AppendIfNoSuchLine 'force-confold'
                AppendIfNoSuchLine 'force-confdef'
                }


Create /etc/apt/apt.conf.d/10cfengine with the following:
   Append "APT {"
   Append "        Get {"
   Append "        Assume-Yes \"true\";"
   Append "        Fix-Missing \"yes\";"
   Append "        Show-Upgraded \"yes\";"
   Append "        Purge \"true\";"
   Append "        List-Cleanup \"true\";"
   Append "        ReInstall \"false\";"
   Append "        };"
   Append "};"
   Append ""
   Append "DPkg::Pre-Install-Pkgs {"
   Append "        \"dpkg-preconfigure --apt --frontend=non interactive\";"
   Append "};"

Also, I do use the noninteractive when calling apt-get install:

DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get install "$1"

Though I was surprised to see apt support in 2.1.13 this weekend, I've
got some shell script modules I use for querying and installing
packages that work for me. I'll share them if there is interest.

Russell

On Mon, Mar 21, 2005 at 10:23:40AM +0100, martin f krafft wrote:
> also sprach Moritz Bunkus <m.bunkus@linet-services.de> [2005.03.21.0933 
> +0100]:
> > as in "install that package with its default options". This did work
> > rather well with joe, but I ran into some problems with another package
> > and its config files.
> 
> Details?
> 
> It might help to set
> 
>  DEBIAN_FRONTEND=noninteractive
> 
> before the apt-get call.
> 
> -- 
> martin;              (greetings from the heart of the sun.)
>   \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
>  
> invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
> spamtraps: madduck.bogus@madduck.net
>  
> "cs class at 8:30am. ugly. if you can wake up early enough to get
>  good grades here, you need to develop hacker habits..."
>                                      -- jeff bailey on #debian-devel



> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine

-----------------------------
Russell Adams
RLAdams@AdamsInfoServ.com
http://www.adamsinfoserv.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]