build a CD from varous repositories

View: New views
7 Messages — Rating Filter:   Alert me  

build a CD from varous repositories

by Geronimo Ma. Hernandez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I started with the toolchain and the "mirror-sync" script from alioth.
All parts played together and I got my first self-build image.

Now I would like to add packages from other repositories to the CD - so I have
to mirror them too.

The run of the mirror-sync wasted most of my diskspace with packages, that
never would go to CD - and I don't know, whether all repositories fit on a
single partition.

Is there a (documented?) way to create partial mirrors from various
repositories, so the building of the CD can succeed?

I think of a way like apt-get works, based on packagelist and sources.list -
but without caring about the installed packages on the host.

Any hint is appreciated.
Geronimo


--
To UNSUBSCRIBE, email to debian-cd-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: build a CD from varous repositories

by Frans Pop-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 07 November 2009, Geronimo Ma. Hernandez wrote:
> Is there a (documented?) way to create partial mirrors from various
> repositories, so the building of the CD can succeed?

Try 'debmirror' (or one of the similar packages).

See also: http://alioth.debian.org/~fjp/log/tags/debmirror.html

Cheers,
FJP


--
To UNSUBSCRIBE, email to debian-cd-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: build a CD from varous repositories

by Geronimo Ma. Hernandez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello and thank you for your support.

> Try 'debmirror' (or one of the similar packages).

I already used your script (mirror-sync) which wrappes debmirror.
The point is, that (from my understanding) debmirror only works with
blacklists (--exclude).
... and so far, I don't know, what I should exclude.

I wrote a tasklist which after "make packagelists ..." results in a file
called "list".

I would like to use that file to create my local partial mirror - cause I'm
only interested in that packages plus their dependencies - no matter how many
CD-images I'll have to create.
I tried to use apt-get with --download-only, but it knows nothing about udebs.

Imagine that I like to add virtualbox from
http://download.virtualbox.org/virtualbox/debian on my CD. I don't know, how
many files the repository of virtualbox.org contains - and I don't like to
care about. I only know, that I want to add virtualbox with all its
dependencies. My sources.list includes all repositories necessary - so an
apt-get install works.
virtualbox is only one package from an non-debian repository. I have various
packages from several other repositories.

Can the apt-get environment be used to create a local mirror that is usable to
build a CD(-set)? Or can I combine various tools to solve that?
I don't fear about writing scripts - the point is, I don't know, how I could
solve the problem.

kind regards
Geronimo


--
To UNSUBSCRIBE, email to debian-cd-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: build a CD from varous repositories

by Frans Pop-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 07 November 2009, Geronimo Ma. Hernandez wrote:
> Hello and thank you for your support.
>
> > Try 'debmirror' (or one of the similar packages).
>
> I already used your script (mirror-sync) which wrappes debmirror.
> The point is, that (from my understanding) debmirror only works with
> blacklists (--exclude).
> ... and so far, I don't know, what I should exclude.

That's why I added the second link. See my last post there. It has some
examples of what could be excluded.

> I would like to use that file to create my local partial mirror - cause
> I'm only interested in that packages plus their dependencies - no matter
> how many CD-images I'll have to create.

That's very extreme... I don't think you could still call that a useful
mirror. Debmirror is not the tool for that. Don't know of any
alternatives.

> Can the apt-get environment be used to create a local mirror that is
> usable to build a CD(-set)? Or can I combine various tools to solve
> that? I don't fear about writing scripts - the point is, I don't know,
> how I could solve the problem.

Can't help you there. Sorry.


--
To UNSUBSCRIBE, email to debian-cd-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: build a CD from varous repositories

by Vagrant Cascadian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 07, 2009 at 02:25:10PM +0100, Geronimo Ma. Hernandez wrote:
> Hello and thank you for your support.
>
> > Try 'debmirror' (or one of the similar packages).
>
> I already used your script (mirror-sync) which wrappes debmirror.
> The point is, that (from my understanding) debmirror only works with
> blacklists (--exclude).
> ... and so far, I don't know, what I should exclude.

you could try simple-cdd:

  http://wiki.debian.org/Simple-CDD

it generates a partial mirror based on what packages you're interested in, and
uses debian-cd to generate a CD image based with those packages.

it has some support for multiple repositories, and there are some tricks for
adding custom packages as well.

live well,
  vagrant


--
To UNSUBSCRIBE, email to debian-cd-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: build a CD from varous repositories

by Geronimo Ma. Hernandez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello vagrant,

thank you very much for your attention!

I have 2 virtualboxes (sid and lenny), where I perform the excercises.
Simple-CCD doesn't work for sid, nor for lenny. And I have completely
different errors that are documented.

I'm not that used to shellscripting, so I startet with a little perlscript,
that should build my partial mirror. That script already is able to fetch and
scan Release- and Package-files and process a local packagelist.  I started
with the list, generated from debian-cd by "make packagelists ...", but
without trying to solve dependencies yet, I have packages, that could not be
found at all - neither scanning for package-name, nor scanning
for 'provides'.

I think I miss a lot of understanding from package-organisation, so it seems
not to be a solveable problem for me, create a custom cd.

kind regards
Geronimo


--
To UNSUBSCRIBE, email to debian-cd-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: build a CD from varous repositories

by Geronimo Ma. Hernandez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I did some additional investigations, but did not understand the result. Is
any you cracks willing to take a look at my script and shine me a light on
what I'm missing? I would appreciate it a lot.

Currently my (perl-)script only fetches Release-files and Package lists, no
deb-files yet. Also it does not support any cmdline options yet.
It creates a 'tmp' directory in the current directory, using that
tmp-directory as target for the downloads.

The repositories are taken from /etc/apt/sources.list
and /etc/apt/sources.list.d/*
Simple support exists for /etc/apt/preferences.

It needs a packagelist as parameter. That packagelist should be in the current
directory.

I did the testing by: "resolveList pkg.list 2> missing > 2download"

The file 2download looks fine to me, but I don't understand the content of
missing.

kind regards
Geronimo


resolveList.tar.bz2 (4K) Download Attachment