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

About the debmirror tool



Hello all,

I'm (partial) mirroring the Debian GNU/Linux Etch for AMD64 packages so
that I can have my own local repository offline.  I'm using the
debmirror tool now but I have problems on the values for the <regex>
part of the debmirror options like the following:

--exclude-deb-section=<regex>
--exclude=<regex>

I tried with my limited knowledge on regex the following entries:

--exclude-deb-section=(\<games\>|\<hamradio\>|\<electronics\>|\<news\>)

--exclude=(\<kernel\-headers\-2\.[0-5]\.*\>|\<kernel\-image\-2\.[0-5]\.*
\>|*\<alpha\.deb\>|*\<alpha\.udeb\>|*\<arm\.deb\>|*\<arm\.udeb\>|*\<hppa
\.deb\>|*\<hppa\.udeb\>|*\<hurd\-i386\.deb\>|*\<hurd\-i386\.udeb\>|*
\<i386\.deb\>|*\<i386\.udeb\>|*\<ia64\.deb\>|*\<ia64\.udeb\>|*\<m68k
\.deb\>|*\<m68k\.udeb\>|*\<mips\.deb\>|*\<mips\.udeb\>|*\<mipsel\.deb\>|
*\<mipsel\.udeb\>|*\<powerpc\.deb\>|*\<powerpc\.udeb\>|*\<s390\.deb\>|*
\<s390\.udeb\>|*\<sparc\.deb\>|*\<sparc\.udeb\>)

Basically, I want to exclude the Sections of the Debian GNU/Linux
packages for the following:

- games
- hamradio
- electronics
- news

Also, I want to exclude the packages with names that starts with the
following:

- kernel-headers-2.0.* to kernel-headers-2.5.*
- kernel-image-2.0.* to kernel-image-2.5.*

And other packages that ends with the following:

- *alpha.deb
- *alpha.udeb
- *arm.deb
- *arm.udeb
- *hppa.deb
- *hppa.udeb
- *hurd-i386.deb
- *hurd-i386.udeb
- *i386.deb
- *i386.udeb
- *ia64.deb
- *ia64.udeb
- *m68k.deb
- *m68k.udeb
- *mips.deb
- *mips.udeb
- *mipsel.deb
- *mipsel.udeb
- *powerpc.deb
- *powerpc.udeb
- *s390.deb
- *s390.udeb
- *sparc.deb
- *sparc.udeb

Any tips especially to those people who uses the debmirror tool?  I just
want to limit the packages I want to download with the debmirror tool
specific to AMD64 arch only.

By the way, the whole options I used in executing the debmirror tool are
as follows:

$ sudo debmirror --nosource --cleanup -p -h ftp.tw.debian.org -e rsync
-r :debian -d etch -s main,contrib,non-free -a amd64
--exclude-deb-section=(\<games\>|\<hamradio\>|\<electronics\>|\<news\>)
--exclude=(\<kernel\-headers\-2\.[0-5]\.*\>|\<kernel\-image\-2\.[0-5]\.*
\>|*\<alpha\.deb\>|*\<alpha\.udeb\>|*\<arm\.deb\>|*\<arm\.udeb\>|*\<hppa
\.deb\>|*\<hppa\.udeb\>|*\<hurd\-i386\.deb\>|*\<hurd\-i386\.udeb\>|*
\<i386\.deb\>|*\<i386\.udeb\>|*\<ia64\.deb\>|*\<ia64\.udeb\>|*\<m68k
\.deb\>|*\<m68k\.udeb\>|*\<mips\.deb\>|*\<mips\.udeb\>|*\<mipsel\.deb\>|
*\<mipsel\.udeb\>|*\<powerpc\.deb\>|*\<powerpc\.udeb\>|*\<s390\.deb\>|*
\<s390\.udeb\>|*\<sparc\.deb\>|*\<sparc\.udeb\>)
--ignore-missing-release --ignore-release-gpg
--ignore-small-errors /mnt/repository/debian

Thank you for giving time to read the entire contents of this message
and thank you in advance for trying to give me much more practical
solutions and/or trying to help me solve my problem.



Reply to: