* Richard Betham <rich...@betham.org.uk> [141114 18:06]:
> I wish to be able, conveniently to make a repository containing
> the packages which:
> + are installed on my computer; and
> + are not included in the Official DVD, (or are a later version).
> I prefer the new repository to contain the versions of packages which
> are installed in my computer.
> These have always been tested, even if not much.
> I wish to copy the result to a CD-R, or to a DVD, which
> should be acceptable to apt-cdrom, and to apt-get.
> (apt-move used to do almost this.)
> 
> It is not obvious from the documentation of reprepro, how to do this.
> 
> I have started trying to make a script file to do this.
> Does anybody else want it?
> Has anybody already written one?
> 
> Is there an easy way to make a repository containing only installed 
> packages?

To get the list of installed packages suitable for reprepro, do:

dpkg --get-selections | sed -e 's/:[^ \t]*//' > conf/mylist.lst

This you can then give to reprepro in a conf/updates block listing
the source where you get your packages and add something like

FilterList: purge mylist.lst

to make that update rule pull only package that you have installed.

Removing newer packages than some given set is not that easy AFAIK.
(There is support for the other way around: Doing a mirror with only
packages from the DVD that you do not have a newer version around).

If you compare the versions yourself and know which packages not to
include, you can add create another list with "<packagename> purge"
in each lines and give that to FilterList to exclude them:

FilterList: purge mylist.lst without.lst

Hope that helps,
        Bernhard R. Link
-- 
F8AC 04D5 0B9B 064B 3383  C3DA AFFC 96D1 151D FFDC


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to