Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #241732 > unrolled thread
| Started by | Uladzimir Bely <ubely@ilbers.de> |
|---|---|
| First post | 2021-10-27 17:10 +0200 |
| Last post | 2021-10-28 04:20 +0200 |
| Articles | 4 — 4 participants |
Back to article view | Back to linux.debian.user
Looking for a way to cache .deb files downloaded by apt inside sbuild schroot Uladzimir Bely <ubely@ilbers.de> - 2021-10-27 17:10 +0200
Re: Looking for a way to cache .deb files downloaded by apt inside sbuild schroot Charles Curley <charlescurley@charlescurley.com> - 2021-10-27 17:50 +0200
Re: Looking for a way to cache .deb files downloaded by apt inside sbuild schroot David Christensen <dpchrist@holgerdanske.com> - 2021-10-27 18:00 +0200
Re: Looking for a way to cache .deb files downloaded by apt inside sbuild schroot Roberto C. Sánchez <roberto@debian.org> - 2021-10-28 04:20 +0200
| From | Uladzimir Bely <ubely@ilbers.de> |
|---|---|
| Date | 2021-10-27 17:10 +0200 |
| Subject | Looking for a way to cache .deb files downloaded by apt inside sbuild schroot |
| Message-ID | <DcSIV-2pL-7@gated-at.bofh.it> |
When sbuild is used to compile a package from sources, some packages (package dependencies) are internally downloaded and installed in schroot. I'm looking for a way to cache the dependencies in form of .deb files outside the schroot. So that I could later create a local partial debian repo from these .deb files and run sbuild for a second time using the same schroot but with local repo for getting dependencies. I tried several options for sbuild (like --purge-build=never, --purge- deps=never, --purge-session=never), tried to find .deb files during the build using at some stages (--pre-build-commands="ls -la /var/cache/apt/archives/", --starting-build-commands="ls -la /var/cache/apt/archives/", --finished-build- commands="ls -la /var/cache/apt/archives/") - but I couldn't see any .deb files inside the schroot. -- Uladzimir Bely Promwad Ltd. External service provider of ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn, Germany +49 (89) 122 67 24-0 Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov
[toc] | [next] | [standalone]
| From | Charles Curley <charlescurley@charlescurley.com> |
|---|---|
| Date | 2021-10-27 17:50 +0200 |
| Subject | Re: Looking for a way to cache .deb files downloaded by apt inside sbuild schroot |
| Message-ID | <DcTlE-2CT-1@gated-at.bofh.it> |
| In reply to | #241732 |
On Wed, 27 Oct 2021 17:32:21 +0300 Uladzimir Bely <ubely@ilbers.de> wrote: > I'm looking for a way to cache the dependencies in form of .deb files > outside the schroot. So that I could later create a local partial > debian repo from these .deb files and run sbuild for a second time > using the same schroot but with local repo for getting dependencies. Maybe not quite what you are looking for, but consider apt-cacher-ng. This will put a local cache on your network for all your .deb packages. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
[toc] | [prev] | [next] | [standalone]
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Date | 2021-10-27 18:00 +0200 |
| Subject | Re: Looking for a way to cache .deb files downloaded by apt inside sbuild schroot |
| Message-ID | <DcTvk-2Gc-11@gated-at.bofh.it> |
| In reply to | #241732 |
On 10/27/21 7:32 AM, Uladzimir Bely wrote: > When sbuild is used to compile a package from sources, some packages (package > dependencies) are internally downloaded and installed in schroot. > > I'm looking for a way to cache the dependencies in form of .deb files outside > the schroot. So that I could later create a local partial debian repo from > these .deb files and run sbuild for a second time using the same schroot but > with local repo for getting dependencies. > > I tried several options for sbuild (like --purge-build=never, --purge- > deps=never, --purge-session=never), tried to find .deb files during the build > using at some stages (--pre-build-commands="ls -la /var/cache/apt/archives/", > --starting-build-commands="ls -la /var/cache/apt/archives/", --finished-build- > commands="ls -la /var/cache/apt/archives/") - but I couldn't see any .deb > files inside the schroot. I suggest setting up a VM on the host or LAN with a general-purpose package caching proxy server. In the past, I have used approx: https://packages.debian.org/bullseye/approx David
[toc] | [prev] | [next] | [standalone]
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Date | 2021-10-28 04:20 +0200 |
| Subject | Re: Looking for a way to cache .deb files downloaded by apt inside sbuild schroot |
| Message-ID | <Dd3bj-ct-1@gated-at.bofh.it> |
| In reply to | #241732 |
On Wed, Oct 27, 2021 at 05:32:21PM +0300, Uladzimir Bely wrote: > When sbuild is used to compile a package from sources, some packages (package > dependencies) are internally downloaded and installed in schroot. > > I'm looking for a way to cache the dependencies in form of .deb files outside > the schroot. So that I could later create a local partial debian repo from > these .deb files and run sbuild for a second time using the same schroot but > with local repo for getting dependencies. > > I tried several options for sbuild (like --purge-build=never, --purge- > deps=never, --purge-session=never), tried to find .deb files during the build > using at some stages (--pre-build-commands="ls -la /var/cache/apt/archives/", > --starting-build-commands="ls -la /var/cache/apt/archives/", --finished-build- > commands="ls -la /var/cache/apt/archives/") - but I couldn't see any .deb > files inside the schroot. > You might want to look at cowbuilder. It does this automatically without any additional components that need to be configured. Regards, -Roberto -- Roberto C. Sánchez
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web