Hi,

A couple of weeks ago, I switched over to Debian from RedHat. So far
things are fine, but I am facing a problem with apt-get. I have
downloaded the first few iso images of sarge and have them lying on my
hard-disk.

I have the following lines in my '/etc/apt/sources.list'
===
deb file:/mnt/sarge/1 sarge main
deb file:/mnt/sarge/2 sarge main
deb file:/mnt/sarge/3 sarge main
deb file:/mnt/sarge/4 sarge main
deb file:/mnt/sarge/5 sarge main
deb http://ftp.us.debian.org/debian stable main contrib non-free
deb http://ftp.us.debian.org/debian testing main contrib non-free
deb-src http://ftp.us.debian.org/debian stable main contrib non-free
deb-src http://ftp.us.debian.org/debian testing main contrib non-free
===

I have put the following lines in the '/etc/apt/preferences' file to
give higher priority to the local packages. (As per the manpage)

Package: *
Pin: origin ""
Pin-Priority: 999

However this does not seem to work. The command 'apt-cache policy' shows
no difference with the addition/deletion of the above lines to
/etc/apt/preferences, and apt-get insists on downloading the files from
the net even for minor changes in the versions.

Is there any way to force apt-get to use the local packages instead of
downloading them again?

Thanks,
Rajkiran


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

Reply via email to