Differences between revisions 7 and 8
Revision 7 as of 2005-07-05 10:45:23
Size: 634
Editor: anonymous
Comment:
Revision 8 as of 2005-07-05 10:52:46
Size: 1198
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Debconf configuration is initiated with this line: Debconf configuration is initiated with following line. There is no need to add it, as it is already there by default, it is shown here only as an example. The command in brackets could be any arbitrary command to be executed in shell.
Line 10: Line 10:

There are also options
{{{
 Dpkg::Pre-Invoke {"command";};
 Dpkg::Post-Invoke {"command";};
}}}

They execute commands before/after apt calls dpkg. One thing to note is that with Pre-Install-Pkgs deb package path is passed on to stdin from apt, eg. when installing package gnome the following is stdin of called command:
{{{
 /var/cache/apt/archives/gnome_2.10.1.1_all.deb
}}}

["?AptDirectory"]


/etc/apt/conf file

Debconf configuration is initiated with following line. There is no need to add it, as it is already there by default, it is shown here only as an example. The command in brackets could be any arbitrary command to be executed in shell.

 Dpkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt |||| true";};

There are also options

 Dpkg::Pre-Invoke {"command";};
 Dpkg::Post-Invoke {"command";};

They execute commands before/after apt calls dpkg. One thing to note is that with Pre-Install-Pkgs deb package path is passed on to stdin from apt, eg. when installing package gnome the following is stdin of called command:

 /var/cache/apt/archives/gnome_2.10.1.1_all.deb

An example that sets default release to testing:

 APT::Default-Release "testing";

You can use this example for HTTP proxy:

 Acquire::http::Proxy "http://proxy:8080";

And this one for FTP proxy (NOTE: Only change proxy hostname and port):

 Acquire::ftp
 {
   Proxy "ftp://proxy:2121/";
   ProxyLogin
   {
      "USER $(SITE_USER)@$(SITE)";
      "PASS $(SITE_PASS)";
   }
 }