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

Re: Recommended sources.list for new etch installs.



hendrik@topoi.pooq.com writes:

> Are there any problems involved in *adding* a line like this to an 
> existing sources.list, rather than replacing an existing one?

I'm (still) using a "hybrid" setup along those lines; it seems to work
fine, though you need to take some care to ensure that you always get
official packages.  With the old autobuilder shut off, I believe the
following should be sufficient:

- Run apt-cache clean to get rid of unofficial binaries.
- Give unofficial packages a lower priority in /etc/apt/preferences:

    Explanation: Discount the unofficial amd64 archive, as the official
    Explanation: archive is finally starting to gain amd64 binary packages.
    Package: *
    Pin: release l=Debian AMD64 archive
    Pin-Priority: 300

- For good measure, also list them later in your sources.list.

Also, be advised that most of the old archive's binary-only rebuilds
have been superseded; here's the code I use to determine what needs
"downgrading":

    #unofficial=unofficial package lists (filenames)
    #official=official package lists
    grep-dctrl -n -sPackage -FVersion -e '\+b[0-9]+$' $unofficial | \
        sed -e 's/^/\^/; s/[.+]/\\\\&/g;
        s/$/\$~S~i~V\\\\+b[0-9]+$/' | \
        xargs --no-run-if-empty aptitude -F '%p' search | \
        sed -e 's/^/\^Package: /; s/[.+]/\\&/; s/ *$/\$/' > bin-nmu-patterns
    grep-dctrl -sPackage ! -FVersion -e '\+b[0-9]+$' $official | \
        grep -Ehf bin-nmu-patterns | \
        sed -e 's/^Package: /\^/; s/[.+]/\\\\&/g; s/$/\$~i/' | \
        xargs --no-run-if-empty aptitude -F '%p =%V#' search | \
        sed -ne 's/ *//g; s/+b[0-9]*$//p'

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger amu@monk.mit.edu (NOT a valid e-mail address) for more info.



Reply to: