On Thu, Feb 12, 2004 at 11:14:57PM -0800, Daren Reavis wrote: > Is there any way to have more than one sources.list > file without needing to apt-get update when switching > between them? I have a slow dial-up connection, but I > have all 7 woody cd's. > > I want to use the cd's for everything except if there > is a program I want that is not on them or a newer > version of a program that I want online. It seems > like having two sources.list files would be the > easiest way to do this, but I don't know if it's > possible.
The Woody branch from the online Debian repository is identical to the Woody branch on the CD's. Updated files for Woody are in the online security repository. To accomplish what you describe here, you do not need two sources.list files. All you need is to have the CD's in your sources.list, and then this line included: deb http://security.debian.org/ stable/updates main Any packages that have security-related updates will be grabbed from the online repository, and any packages without any known security vulnerabilities will be grabbed from the CD's. You can also include the testing or unstable branch from the online repository, but default to the stable branch via apt_preferences (or put ``APT::Default-Release "stable";'' in a file in /etc/apt/apt.conf.d). You can force a particular repository with apt-get when you install a file, or force it with apt_preferences. But you will quickly descend into dependency hell if you do this. Use equivs as a last resort. Mike .___________________________________________________________________. Michael A. Halcrow Security Software Engineer, IBM Linux Technology Center GnuPG Fingerprint: 05B5 08A8 713A 64C1 D35D 2371 2D3C FDDA 3EB6 601D Hands-free mobile phones: blurring the distinction between schizophrenia and technology.
pgp00000.pgp
Description: PGP signature
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
