On Monday 17 November 2014 18:33:16 Bernhard R. Link wrote:
> 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

Thank you very much for your e-mail,
It is useful to know that I must remove the ":" and whatever follows,
from the end of the package name,
so that it will be suitable input for reprepro FilterList.

I have got my Makefile script file to work well enough
to generate an image for a cdrom which seems to
be acceptable to apt-cdrom, and to apt-get.

However, when I run my script again, trying to use the cdrom as one 
of the sources, reprepro generates an error message and aborts.
The text of the error messages is copied into the attached file
called "make.op.txt"

I have tried various variants of the update file,
using:
Method: cdrom:[...]
Method: cdrom://[...]
Method: cdrom:"[...]"

I did not put "...",
I put "Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36".
I prefer to have spaces in the name, but that seemed to cause 
trouble.

I attach copies of various files which seem relevant.

Please advise me of the correct format for the line 
in the file conf/updates, which starts:
Method: cdrom:...

I am attempting to write a make script file, to cause reprepro,
to put onto cdrom, some of the packages which are installed
in the computer which runs the script file.
I have succeeded in using
Method: file:/...
in my update file.

Thank you very much for maintaining reprepro.

with best regards from
Richard Betham
#

# deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official i386 DVD Binary-1 
20140426-12:26]/ wheezy contrib main

deb-src cdrom:[Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36]/ wheezy contrib 
main
deb cdrom:[Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36]/ wheezy contrib main
deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official i386 DVD Binary-1 
20140426-12:26]/ wheezy contrib main

deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official i386 DVD Binary-2 
20140426-12:26]/ wheezy contrib main

deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official i386 DVD Binary-3 
20140426-12:26]/ wheezy contrib main

deb cdrom:[Debian 7.5.0 _Wheezy_ - Official DVD Source-2 20140426-13:00]/ 
wheezy contrib main

deb cdrom:[Debian 7.5.0 _Wheezy_ - Official DVD Source-1 20140426-13:00]/ 
wheezy contrib main

deb cdrom:[Debian 7.5.0 _Wheezy_ - Official DVD Source-3 20140426-13:00]/ 
wheezy contrib main

deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib

# wheezy-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ wheezy-updates main contrib
# deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib




CD::40f02ad1c0f6169b2ee6cdeb64621d42-2 "Debian GNU/Linux 7.5.0 _Wheezy_ - 
Official i386 DVD Binary-1 20140426-12:26";
CD::40f02ad1c0f6169b2ee6cdeb64621d42-2::Label "Debian GNU/Linux 7.5.0 _Wheezy_ 
- Official i386 DVD Binary-1 20140426-12:26";
CD::48a6c28d16e9af7a3d0e6d12d7f89587-2 "Debian GNU/Linux 7.5.0 _Wheezy_ - 
Official i386 DVD Binary-2 20140426-12:26";
CD::48a6c28d16e9af7a3d0e6d12d7f89587-2::Label "Debian GNU/Linux 7.5.0 _Wheezy_ 
- Official i386 DVD Binary-2 20140426-12:26";
CD::2c97c0891aabca20d611079fdaac8c24-2 "Debian GNU/Linux 7.5.0 _Wheezy_ - 
Official i386 DVD Binary-3 20140426-12:26";
CD::2c97c0891aabca20d611079fdaac8c24-2::Label "Debian GNU/Linux 7.5.0 _Wheezy_ 
- Official i386 DVD Binary-3 20140426-12:26";
CD::30fb046eca860a86a6e6decc8081db33-2 "Debian 7.5.0 _Wheezy_ - Official DVD 
Source-2 20140426-13:00";
CD::30fb046eca860a86a6e6decc8081db33-2::Label "Debian 7.5.0 _Wheezy_ - Official 
DVD Source-2 20140426-13:00";
CD::54134ce77c0070672d224c3d21c1951f-2 "Debian 7.5.0 _Wheezy_ - Official DVD 
Source-1 20140426-13:00";
CD::54134ce77c0070672d224c3d21c1951f-2::Label "Debian 7.5.0 _Wheezy_ - Official 
DVD Source-1 20140426-13:00";
CD::74c127929f11bf93004994d7a2375e4b-2 "Debian 7.5.0 _Wheezy_ - Official DVD 
Source-3 20140426-13:00";
CD::74c127929f11bf93004994d7a2375e4b-2::Label "Debian 7.5.0 _Wheezy_ - Official 
DVD Source-3 20140426-13:00";
CD::e02c6370e1fcb84f37588d2249886546-2 "Debian Wheezy in part as at 2014 07 
22.";
CD::e02c6370e1fcb84f37588d2249886546-2::Label "Debian Wheezy in part as at 2014 
07 22.";
CD::f45a94457da289dc4e992efa2ccd2760-2 "Debian Wheezy in part as at 2014 10 
14.";
CD::f45a94457da289dc4e992efa2ccd2760-2::Label "Debian Wheezy in part as at 2014 
10 14.";
CD::ea92bdfe9c49b73977c9a77476fca86c-2 "Debian Wheezy in part as at 2014 11 
08.";
CD::ea92bdfe9c49b73977c9a77476fca86c-2::Label "Debian Wheezy in part as at 2014 
11 08.";
CD::72f094799e4a03c8b00f8ae26db83979-2 "Debian Wheezy in part as at 2014 11 
22.";
CD::72f094799e4a03c8b00f8ae26db83979-2::Label "Debian Wheezy in part as at 2014 
11 22.";
CD::eb830e5a3d99fd15e80047e240ab0898-2 "Debian Wheezy in part as at 2014 11 
25.";
CD::eb830e5a3d99fd15e80047e240ab0898-2::Label "Debian Wheezy in part as at 2014 
11 25.";
CD::eb2587775a94f9303d26b4a33600550e-2 
"Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36";
CD::eb2587775a94f9303d26b4a33600550e-2::Label 
"Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36";
Name: Debian-part-cdrom
Method: cdrom://"Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36"/
VerifyRelease: blindtrust
# Method: file:/mirrors/debian
FilterList: purge dpkg--get-selections.narrow

Name: Debian-part-cdrom-updates
# Method: cdrom:[Debian%20Wheezy%20in%20part%20as%20at%202014%2011%2025.]/
# Method: file:/mirrors/debian
From: Debian-Wheezy-Updates
FilterList: purge dpkg--get-selections

Name: Debian-security-updates
Method: http://security.debian.org/updates
VerifyRelease: 8B48AD6246925553|6FB2A1C265FFB764
FilterList: purge dpkg--get-selections

Name: Debian-Wheezy-Updates
Method: ftp://ftp.uk.debian.org/debian
VerifyRelease: 8B48AD6246925553|6FB2A1C265FFB764
FilterList: purge dpkg--get-selections

Name: Debian-Wheezy
Method: ftp://ftp.uk.debian.org/debian
VerifyRelease: 8B48AD6246925553|6FB2A1C265FFB764
FilterList: purge dpkg--get-selections.narrow

Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36
#  Before running reprepro, user must arrange the import of certificates of 
keys into gpg.
/usr/bin/reprepro --noskipold --basedir ./ --conf +b/multi-conf --morguedir 
+b/morguedir update
aptmethod error receiving 
'cdrom://"Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36"/dists/wheezy/InRelease':
'Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update 
cannot be used to add new CD-ROMs'
aptmethod error receiving 
'cdrom://"Debian~Wheezy~in~part~as~at~2014-11-29+21:20:36"/dists/wheezy/Release':
'Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update 
cannot be used to add new CD-ROMs'
aptmethod error receiving 
'ftp://ftp.uk.debian.org/debian/dists/wheezy/InRelease':
'Unable to fetch file, server said 'Failed to open file.  ''
There have been errors!
make: *** [dists/wheezy/Release] Error 255

Reply via email to