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

Re: About the debmirror tool



GNU Linux <gnubie@gmail.com> writes:

> 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\>)

iirc the simplest way is

--exclude-deb-section=games --exclude-deb-section=hamradio ...

> --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\>)

Same here.

> 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
...

Those are handled by the architectures you mirror. '-a amd64' already
limits you to only *all.deb and *amd64.deb.

MfG
        Goswin



Reply to: