On Tue, 04 Mar 2003 18:04:53 -0700
[EMAIL PROTECTED] wrote:

> When I run "apt-get update", Debian logs on to the updates ftp site
> (such as ftp.debian.org) and downloads an entirely new list of
> packages which overrides the older list. Thus if I install Debian from
> CDs and update, I will no longer be able to use them. Debian will
> insist on installing any previously not installed programs from the
> site, rather than the discs. Can I somehow tell apt-get only to update
> my X Windows System to version 4.2 (and to download any required
> dependency library updates) without making me dependent on the website
> forever?

First of all, if your CDs are still mentioned in /etc/apt/sources.list,
then your CDs will be the primary source for installing new packages, as
long as there are no newer versions in the Debian archive and / or you
don't have added sources for a younger distribution version (testing /
unstable). In the latter  cases the packages will be fetched from the
net. So first have a look if entries like these exist in your sources
list:

deb cdrom:[Debian GNU/Linux 2.2 r3 _Potato_ - Official i386 Binary-3
(20010427)]/ unstable contrib main non-US/contrib non-US/main
deb cdrom:[Debian GNU/Linux 2.2 r3 _Potato_ - Official i386 Binary-2
(20010427)]/ unstable contrib main non-US/contrib non-US/main
deb cdrom:[Debian GNU/Linux 2.2 r3 _Potato_ - Official i386 Binary-1
(20010427)]/ unstable contrib main non-US/contrib non-US/main

If not you can use apt-cdrom to add all your CDs, so you don't need to
edit that by hand.

Beside that you can define priorities for your sources in
/etc/apt/preferences. Create it if doesn't already exist. You can set
your prefered distribution version and that way you can use e.g.
packages from testing by default and if needed you can also install
packages from unstable with 'apt-get install -t unstable <PACKAGE>'. For
using packages from testing by default /etc/apt/preferences  would look
like this:

# this lowers the priority level of unstable packages
Package: *
Pin: release a=unstable
Pin-Priority: 50

And of course you can also set versions for single packages. See 'man
apt_preferences' for details.

Regards,
Christian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to