Partial mirror #64

Closed
ktosiek opened this Issue Jun 9, 2014 · 12 comments

Comments

Projects
None yet
5 participants
@ktosiek

ktosiek commented Jun 9, 2014

I'd like to create mirrors that only download a specified set of packages (+dependencies).
This would be pretty handy, as I need some packages from Ubuntu's "universe" (which is ~40GB for saucy) but I don't want to download the whole thing.

Is something like that on the roadmap? (I hope that's what "Filter repository*" on the main site is about)

@smira smira added the enhancement label Jun 9, 2014

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Jun 9, 2014

Member

Hi @ktosiek! That's something on roadmap, but got delayed. I plan to add search queries that could be used anywhere in aptly combined with dependency resolution. So you could say something like "mysql-server" + dependencies.

Member

smira commented Jun 9, 2014

Hi @ktosiek! That's something on roadmap, but got delayed. I plan to add search queries that could be used anywhere in aptly combined with dependency resolution. So you could say something like "mysql-server" + dependencies.

@Jorilx

This comment has been minimized.

Show comment
Hide comment
@Jorilx

Jorilx Jun 16, 2014

Maybe a "don't bother with dbg packages" option would be nice too? They are rarely needed but often huge.

Jorilx commented Jun 16, 2014

Maybe a "don't bother with dbg packages" option would be nice too? They are rarely needed but often huge.

@smira smira added this to the v0.7 milestone Jul 13, 2014

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Jul 13, 2014

Member

Would be available as filtering query on mirrors in aptly 0.7. With many other ways to use queries.

Member

smira commented Jul 13, 2014

Would be available as filtering query on mirrors in aptly 0.7. With many other ways to use queries.

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Jul 16, 2014

Member

Done in master.

E.g. to disable downloading of -dbg packages:

aptly mirror create -filter="!(Name (% *-dbg))" mirrorA ...

To download only nginx package and all its dependencies:

aptly mirror create -filter="nginx" -filter-with-deps mirrorB ...
Member

smira commented Jul 16, 2014

Done in master.

E.g. to disable downloading of -dbg packages:

aptly mirror create -filter="!(Name (% *-dbg))" mirrorA ...

To download only nginx package and all its dependencies:

aptly mirror create -filter="nginx" -filter-with-deps mirrorB ...

@smira smira closed this Jul 16, 2014

smira added a commit to aptly-dev/aptly-bash-completion that referenced this issue Jul 26, 2014

@Jorilx

This comment has been minimized.

Show comment
Hide comment
@Jorilx

Jorilx Sep 1, 2014

Is it possible to filter by Section too? I'd like to exclude games from my mirror, is "!Section (games)" supposed to work? I tried it, but aptly still downloads Nexuiz and its 500Mb textures

Jorilx commented Sep 1, 2014

Is it possible to filter by Section too? I'd like to exclude games from my mirror, is "!Section (games)" supposed to work? I tried it, but aptly still downloads Nexuiz and its 500Mb textures

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Sep 1, 2014

Member

Yes, it works, e.g.:

$ aptly mirror create -filter='!Section (games)' -architectures=amd64 wheezy-main http://mirror.yandex.ru/debian/ wheezy

$ aptly mirror update wheezy-main
Applying filter...
Packages filtered: 36618 -> 35584.

As you can see, 1000+ packages have been removed from the mirror.

Member

smira commented Sep 1, 2014

Yes, it works, e.g.:

$ aptly mirror create -filter='!Section (games)' -architectures=amd64 wheezy-main http://mirror.yandex.ru/debian/ wheezy

$ aptly mirror update wheezy-main
Applying filter...
Packages filtered: 36618 -> 35584.

As you can see, 1000+ packages have been removed from the mirror.

@Jorilx

This comment has been minimized.

Show comment
Hide comment
@Jorilx

Jorilx Sep 1, 2014

I see, it must be a problem with Nexuiz package then... Thanks :)

Jorilx commented Sep 1, 2014

I see, it must be a problem with Nexuiz package then... Thanks :)

@bersace

This comment has been minimized.

Show comment
Hide comment
@bersace

bersace Jun 19, 2018

@smira How do you mirror some packages ? package0|package1 seems not to work. aptly 1.1.1 (debian stretch-backports).

bersace commented Jun 19, 2018

@smira How do you mirror some packages ? package0|package1 seems not to work. aptly 1.1.1 (debian stretch-backports).

@rtennill

This comment has been minimized.

Show comment
Hide comment
@rtennill

rtennill Jun 19, 2018

What command line or -filterspec are you using to create the partial mirror?

What command line or -filterspec are you using to create the partial mirror?

@bersace

This comment has been minimized.

Show comment
Hide comment
@bersace

bersace Jun 20, 2018

What command line or -filterspec are you using to create the partial mirror?

What -filter spec, i guess.

bersace commented Jun 20, 2018

What command line or -filterspec are you using to create the partial mirror?

What -filter spec, i guess.

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Jun 22, 2018

Member

It works just fine:

$ aptly mirror create -architectures=i386 -filter 'coreutils|dnsutils' stretch2 http://mirror.yandex.ru/debian/ stretch main
$ aptly mirror update stretch2
...
Applying filter...
Packages filtered: 50908 -> 3.
Member

smira commented Jun 22, 2018

It works just fine:

$ aptly mirror create -architectures=i386 -filter 'coreutils|dnsutils' stretch2 http://mirror.yandex.ru/debian/ stretch main
$ aptly mirror update stretch2
...
Applying filter...
Packages filtered: 50908 -> 3.
@bersace

This comment has been minimized.

Show comment
Hide comment
@bersace

bersace Jun 28, 2018

@smira you're right. The package was missing in origin. Sorry for the noise and thanks for the point.

bersace commented Jun 28, 2018

@smira you're right. The package was missing in origin. Sorry for the noise and thanks for the point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment