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

Re: howto use defaults/preferences to keep to testing ???



Also sprach Colin Watson (Sat 21 Jun 02003 at 05:41:51PM +0100):
> On Sat, Jun 21, 2003 at 10:17:58AM -0500, Michael D. Schleif wrote:
> > Also sprach Colin Watson (Sat 21 Jun 02003 at 12:58:47PM +0100):
> > > On Sat, Jun 21, 2003 at 07:20:16AM -0400, Shawn Lamson wrote:
> > > > Can I ask why you do $dselect update instead of $apt-get update ?  Maybe
> > > > dselect looks at /etc/apt/sources.list and doesn't ever
> > > > look at the /etc/apt/preferences file?
> > > 
> > > No. Michael is doing the right thing here. When configured to use apt as
> > > its access method (as is the default), 'dselect update' runs 'apt-get
> > > update' and then merges the output into dpkg's available file. I advise
> > > never using 'apt-get update' directly.
> > 
> > Thank you.  I know that I'd read that suggestion somewhere, and since,
> > I've made it my habit.  However, for purposes of a cronjob, how do I do
> > _this_ with dselect ???
> > 
> > 	apt-get -q=2 update
> 
> Poking around in /usr/lib/dpkg/methods/apt/update, I believe you can set
> 'DSelect::UpdateOptions "-f -q=2"' in /etc/apt/apt.conf (which you can
> create if it doesn't exist).

Yes, thank you, this does work unattended:

   # cat /etc/apt/apt.conf
   APT::Cache-Limit        12582912;
   APT::Default-Release    "testing";
   DSelect::UpdateOptions  "-f -q=2";

-- 
Best Regards,

mds
mds resource
877.596.8237
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know.  The more I know, the more I know I don't know . . .
--

Attachment: pgpnJLSY7ADGg.pgp
Description: PGP signature


Reply to: