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

Re: give cdrom source more priority in apt-get [lost the original]



Unfortunately no one has responded to this by now, I too was waiting.
The apt_preferences manpage does mention pinning an origin, but
until now I couldn't succeed. 
My less attractive alternative was to add all packages on my CDs into
my preferences file. What I got was an unreasonably long file,
produced by this one-liner:

perl -ne 'print if /^Package:/ or s/^Version: (.+)/Pin: version $1\n/;' 

You have to supply an argument: list of files. Maybe that can vary, I
don't know, on my system it was "/var/lib/apt/lists/D*", in contrast
to "/var/lib/apt/lists/f*" for ftp. Take a look at the files there
and redirect the output to your new preferences file.

    andrej

-- 
echo ${girl_name} > /etc/dumpdates



Reply to: