File: README

package info (click to toggle)
cron-apt 0.6.7
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 276 kB
  • ctags: 12
  • sloc: sh: 282; makefile: 113
file content (95 lines) | stat: -rw-r--r-- 4,013 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
cron-apt for Debian
-------------------

 Edit /etc/cron-apt/config
 and add rules to
 /etc/cron-apt/action.d

 You can also add extra configuration for each action (same syntax as
 /etc/cron-apt/config) by naming the file /etc/cron-apt/config.d/<actionname>.
 The configuration from one action is kept to the next action as well.

 The configuration in /etc/cron-apt/config (and config.d/<actionname> consist
 of a couple of variables that you can set. They are documented in the config
 file itself. The configuration files will always allow any POSIX /bin/sh
 compatible syntax so you can use them for hooks and simlar things as well as
 simply setting variables.

 If you want this tool to be run even if you do not have it up at
 04 in the morning you can create a symbolic link from /etc/cron.daily/cron-apt
 to /usr/sbin/cron-apt. It will then be run every day (even if the computer is
 not on at that time). Similar things can be done for each week, and so on.
 You have to have anacron installed for this to work. If not, daily scripts
 run 6 AM by crond.

  ln -s /usr/sbin/cron-apt /etc/cron.daily/cron-apt

 Observe that it is not always a good thing to update package information
 and download files when the computer is started. This is especially true
 if you do not have a good Internet connection.

 You also need to disable the normal cron.d/cron-apt file if you do not want
 it to be run twice.

Alternate sources.list file
---------------------------

If you just want to update security related things you can always use an
alternate sources.list files by giving this extra information to the OPTIONS
variable in the configuration file.

 OPTIONS="-q -o Dir::Etc::SourceList=/etc/apt/security.sources.list"

Alternate APT main configuration
--------------------------------

There are cases when you need the APT configuration for use with cron-apt to
differ substantially from your standard configuration. For example, cron-apt
will not work with the default configuration of APT, when apt-listbugs is
installed, because this adds a hook that expects keyboard interactivity.

Unfortunately, the apt-tools do not accept Dir::Etc::Main and Dir::Etc::Parts
settings on the command-line. In order to use different paths for them, you
have to create another APT configuration file containing eg:

 Dir::Etc::Main "cron.apt.conf";
 Dir::Etc::Parts "cron.apt.conf.d";

Then uncomment the following line in your cron-apt configuration file and
point it to your newly created APT configuration file:

 export APT_CONFIG=/etc/apt/cron.apt.paths

Development and documentation
-----------------------------

If you want more information about this software you can visit the homepage
at http://inguza.com/software/cron-apt/. You can find documentation,
development information and other things there.

License terms
-------------

 Copyright (C) 2002-2008 Ola Lundqvist <ola@inguza.com>
 Copyright (C) 2004-2007 Marc Haber <mh+debian-bugs@zugschlus.de>
 Copyright (C) 2004,2007 Bob Proulx <bob@proulx.com>
 Copyright (C) 2006      Felix Palmen <fmp@palmen.homeip.net>
 Copyright (C) 2004      Marc Sherman <msherman@projectile.ca>
 Copyright (C) 2004      David Weinehall
 Copyright (C) 2003      Sean Finney <seanius@seanius.net>
 Copyright (C) 2002      Marcel Kolaja <marcel@solnet.cz>

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program as the file COPYING; if not, write to the
 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 MA 02110-1301 USA.