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

Re: Debian and Security Updates



On Wed, Aug 14, 2002 at 02:29:34AM +0200, Hans Ekbrand wrote:
> On Tue, Aug 13, 2002 at 11:52:33PM +0200, Hans Ekbrand wrote:
> > Here's a tip for users that follow stable but also have other deb
> > sources. 
> > 
> > 1. install cron-apt, and configure cron-apt to actually
> > upgrade rather than just download debs.
> 
> And you probably want to remove the "autoclean y" line in
> /etc/cron-apt/action.d/3-download, since autoclean will remove all
> debs from /var/cache/apt/archives that is not available with the
> current /etc/apt/sources.list.
> 
> > 2. make two versions of sources.list, "sources_full.list" including the unofficial deb
> > sources, "sources_security.list" with only security.debian.org...
> > 
> > 3. write a cron script like:
> > 
> > cp /etc/apt/sources_security.list /etc/apt/sources.list
> > cronapt
> > cp /etc/apt/sources_full.list /etc/apt/sources.list

Sorry for responding to my own post, but after reading up on
apt-get I found a much more elegant solution.

Rather than making a new cron script that overwrites
/etc/apt/sources.list, use the Dir::Etc::SourceList option of
apt-get.

My current configuration of cron-apt is like this:

/etc/cron-apt/action.d/0-update-using-only-security-sources.list
contains
-o Dir::Etc::SourceList=/etc/apt/sources_security.list update

/etc/cron-apt/action.d/1-upgrade-using-only-security-sources.list
contains
-o Dir::Etc::SourceList=/etc/apt/sources_security.list upgrade -y

/etc/cron-apt/action.d/2-update-using-full-sources.list
contains
-o Dir::Etc::SourceList=/etc/apt/sources_full.list update

-- 
Note that I use Debian version 3.0
Linux emac140 2.4.17 #1 sön feb 10 20:21:22 CET 2002 i686 unknown

Hans Ekbrand

Attachment: pgp5noiiO8JJM.pgp
Description: PGP signature


Reply to: