Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #264001 > unrolled thread
| Started by | Albretch Mueller <lbrtchx@gmail.com> |
|---|---|
| First post | 2023-11-30 22:10 +0100 |
| Last post | 2023-12-07 07:00 +0100 |
| Articles | 10 — 4 participants |
Back to article view | Back to linux.debian.user
Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? Albretch Mueller <lbrtchx@gmail.com> - 2023-11-30 22:10 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? Dan Ritter <dsr@randomstring.org> - 2023-11-30 22:40 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? David Wright <deblis@lionunicorn.co.uk> - 2023-12-01 00:00 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? Greg Wooledge <greg@wooledge.org> - 2023-12-01 01:10 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? Albretch Mueller <lbrtchx@gmail.com> - 2023-12-02 03:20 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? David Wright <deblis@lionunicorn.co.uk> - 2023-12-02 04:40 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? Albretch Mueller <lbrtchx@gmail.com> - 2023-12-04 22:30 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? David Wright <deblis@lionunicorn.co.uk> - 2023-12-05 00:20 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? Albretch Mueller <lbrtchx@gmail.com> - 2023-12-06 23:50 +0100
Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? David Wright <deblis@lionunicorn.co.uk> - 2023-12-07 07:00 +0100
| From | Albretch Mueller <lbrtchx@gmail.com> |
|---|---|
| Date | 2023-11-30 22:10 +0100 |
| Subject | Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HFWsh-a8rk-1@gated-at.bofh.it> |
I also notice repeated copies of {src-, pkgcache}.bin files for each
downloaded package even though I am downloading them to specific
subdirectories in order to then install them using dpkg.
Do you really need those binaries and cache instructions if you are
just downloading the installation dependencies? How do you remove,
disregard those kinds of caching strategies in a graceful way?
lbrtchx
[toc] | [next] | [standalone]
| From | Dan Ritter <dsr@randomstring.org> |
|---|---|
| Date | 2023-11-30 22:40 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HFWVj-a8Q4-7@gated-at.bofh.it> |
| In reply to | #264001 |
Albretch Mueller wrote:
> I also notice repeated copies of {src-, pkgcache}.bin files for each
> downloaded package even though I am downloading them to specific
> subdirectories in order to then install them using dpkg.
> Do you really need those binaries and cache instructions if you are
> just downloading the installation dependencies? How do you remove,
> disregard those kinds of caching strategies in a graceful way?
Does 'sudo apt clean' solve this for you?
-dsr-
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2023-12-01 00:00 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HFYaJ-aabq-3@gated-at.bofh.it> |
| In reply to | #264001 |
On Thu 30 Nov 2023 at 21:05:38 (+0000), Albretch Mueller wrote:
> I also notice repeated copies of {src-, pkgcache}.bin files for each
> downloaded package even though I am downloading them to specific
> subdirectories in order to then install them using dpkg.
> Do you really need those binaries and cache instructions if you are
> just downloading the installation dependencies? How do you remove,
> disregard those kinds of caching strategies in a graceful way?
Perhaps you could elaborate on the commands you're running.
I don't get "repeated" copies (whatever that means) of
{src-,}pkgcache.bin files when I download packages. Do you
mean the .bin files in /var/cache/apt/ are being overwritten,
or that there are files matching {src-,}pkgcache.bin.* in
that directory, or that you find {src-,}pkgcache.bin files
are being created in other locations?
BTW could you not write part of your post in the Subject line:
in order to respond to that specific part of the post, the
replier has either to top post, or paste the Subject line
back into the correct place. That's ignoring the fact that
many MUAs will truncate the Subject in their index list, so
users won't see what the post is about.
Cheers,
David.
[toc] | [prev] | [next] | [standalone]
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Date | 2023-12-01 01:10 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HFZgt-abAK-15@gated-at.bofh.it> |
| In reply to | #264004 |
On Thu, Nov 30, 2023 at 04:52:01PM -0600, David Wright wrote: > BTW could you not write part of your post in the Subject line: > in order to respond to that specific part of the post, the > replier has either to top post, or paste the Subject line > back into the correct place. That's ignoring the fact that > many MUAs will truncate the Subject in their index list, so > users won't see what the post is about. Agreed. Email etiquette suggests that a Subject: header should never be longer than fits on one line of the terminal (and terminals are 80 columns wide, you heathens). With the "Subject: " string taking 9 characters, and allowing another 4 characters for "Re: " and one more character to prevent line-wrapping when writing to the 80th column, this means your Subject: should be a maximum of 65 characters. Shorter is better.
[toc] | [prev] | [next] | [standalone]
| From | Albretch Mueller <lbrtchx@gmail.com> |
|---|---|
| Date | 2023-12-02 03:20 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HGnLP-atnV-1@gated-at.bofh.it> |
| In reply to | #264004 |
On 11/30/23, David Wright <deblis@lionunicorn.co.uk> wrote:
> On Thu 30 Nov 2023 at 21:05:38 (+0000), Albretch Mueller wrote:
>> I also notice repeated copies of {src-, pkgcache}.bin files for each
>> downloaded package even though I am downloading them to specific
>> subdirectories in order to then install them using dpkg.
>> Do you really need those binaries and cache instructions if you are
>> just downloading the installation dependencies? How do you remove,
>> disregard those kinds of caching strategies in a graceful way?
>
> Perhaps you could elaborate on the commands you're running.
I am using apt-rdepends --follow=Depends <deb package>
to download all dependencies into a subdirectory for each package
then I notice the same files: srcpkgcache.bin et pkgcache.bin in every
subdirectory.
> BTW could you not write part of your post in the Subject line
I understand, It won't happen again
lbrtchx
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2023-12-02 04:40 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HGp1f-au8p-3@gated-at.bofh.it> |
| In reply to | #264077 |
On Sat 02 Dec 2023 at 02:10:48 (+0000), Albretch Mueller wrote:
> On 11/30/23, David Wright <deblis@lionunicorn.co.uk> wrote:
> > On Thu 30 Nov 2023 at 21:05:38 (+0000), Albretch Mueller wrote:
> >> I also notice repeated copies of {src-, pkgcache}.bin files for each
> >> downloaded package even though I am downloading them to specific
> >> subdirectories in order to then install them using dpkg.
> >> Do you really need those binaries and cache instructions if you are
> >> just downloading the installation dependencies? How do you remove,
> >> disregard those kinds of caching strategies in a graceful way?
> >
> > Perhaps you could elaborate on the commands you're running.
>
> I am using apt-rdepends --follow=Depends <deb package>
>
> to download all dependencies into a subdirectory for each package
> then I notice the same files: srcpkgcache.bin et pkgcache.bin in every
> subdirectory.
Obviously I'm trying to replicate what you do. In case it matters,
my bullseye system has package acl installed, but not acl2. (Despite
their names, they're unrelated.)
$ mkdir temp/rdepends ; cd $_
~/temp/rdepends$ apt-rdepends --follow=Depends acl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
acl
Depends: libacl1 (= 2.2.53-10)
Depends: libc6 (>= 2.14)
libacl1
Depends: libc6 (>= 2.14)
libc6
Depends: libcrypt1
Depends: libgcc-s1
libcrypt1
Depends: libc6 (>= 2.25)
libgcc-s1
Depends: gcc-10-base (= 10.2.1-6)
Depends: libc6 (>= 2.14)
gcc-10-base
~/temp/rdepends$ apt-rdepends --follow=Depends acl2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
acl2
Depends: libc6 (>= 2.29)
Depends: libgmp10
Depends: libreadline8 (>= 6.0)
Depends: libx11-6
libc6
Depends: libcrypt1
Depends: libgcc-s1
libcrypt1
Depends: libc6 (>= 2.25)
libgcc-s1
Depends: gcc-10-base (= 10.2.1-6)
Depends: libc6 (>= 2.14)
gcc-10-base
libgmp10
Depends: libc6 (>= 2.14)
libreadline8
Depends: libc6 (>= 2.15)
Depends: libtinfo6 (>= 6)
Depends: readline-common
libtinfo6
Depends: libc6 (>= 2.16)
readline-common
Depends: dpkg (>= 1.15.4)
Depends: install-info
dpkg
Depends: tar (>= 1.28-1)
PreDepends: libbz2-1.0
PreDepends: libc6 (>= 2.15)
PreDepends: liblzma5 (>= 5.2.2)
PreDepends: libselinux1 (>= 3.1~)
PreDepends: zlib1g (>= 1:1.1.4)
tar
PreDepends: libacl1 (>= 2.2.23)
PreDepends: libc6 (>= 2.28)
PreDepends: libselinux1 (>= 3.1~)
install-info
Depends: libc6 (>= 2.14)
PreDepends: dpkg (>= 1.16.1)
libx11-6
Depends: libc6 (>= 2.26)
Depends: libx11-data
Depends: libxcb1 (>= 1.11.1)
libx11-data
libxcb1
Depends: libc6 (>= 2.14)
Depends: libxau6 (>= 1:1.0.9)
Depends: libxdmcp6
libxau6
Depends: libc6 (>= 2.4)
libxdmcp6
Depends: libbsd0 (>= 0.2.0)
Depends: libc6 (>= 2.4)
libbsd0
Depends: libc6 (>= 2.25)
Depends: libmd0 (>= 1.0.3-2)
libmd0
Depends: libc6 (>= 2.14)
~/temp/rdepends$ ls -l
total 0
~/temp/rdepends$ ls -lR /var/cache/apt
/var/cache/apt:
total 69352
drwxr-xr-x 3 root root 57344 Dec 1 19:46 archives
-rw-r--r-- 1 root root 35492253 Dec 1 21:00 pkgcache.bin
-rw-r--r-- 1 root root 35451043 Dec 1 21:00 srcpkgcache.bin
/var/cache/apt/archives:
total 4
-rw-r----- 1 root root 0 Apr 16 2022 lock
drwx------ 2 _apt root 4096 Dec 1 15:00 partial
ls: cannot open directory '/var/cache/apt/archives/partial': Permission denied
~/temp/rdepends$
/var/cache/apt/archives/partial was used at 3pm when libnghttp2-14
was downloaded. The {src,}pkgcache.bin files were created when the
9pm update took place. I see no extra .bin files.
Presumably you're running more commands than you revealed above?
Cheers,
David.
[toc] | [prev] | [next] | [standalone]
| From | Albretch Mueller <lbrtchx@gmail.com> |
|---|---|
| Date | 2023-12-04 22:30 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HHoFP-bb6O-1@gated-at.bofh.it> |
| In reply to | #264085 |
On 12/2/23, David Wright <deblis@lionunicorn.co.uk> wrote: > Obviously I'm trying to replicate what you do. ... > Presumably you're running more commands than you revealed above? Yes, I am; for each " Depends: " package I have been using apt-get download lbrtchx
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2023-12-05 00:20 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HHqoi-bcwS-1@gated-at.bofh.it> |
| In reply to | #264249 |
On Mon 04 Dec 2023 at 21:24:58 (+0000), Albretch Mueller wrote: > On 12/2/23, David Wright <deblis@lionunicorn.co.uk> wrote: > > Obviously I'm trying to replicate what you do. > ... > > Presumably you're running more commands than you revealed above? > > Yes, I am; for each " Depends: " package I have been using apt-get download ~# mkdir /tmp/acl2 ; cd $_ /tmp/acl2# apt-get download acl2 Get:1 http://deb.debian.org/debian bullseye/main amd64 acl2 amd64 8.3dfsg-2 [21.5 MB] Fetched 21.5 MB in 2s (10.1 MB/s) W: Download is performed unsandboxed as root as file '/tmp/acl2/acl2_8.3dfsg-2_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) /tmp/acl2# ls -laR . /var/cache/apt .: total 21004 drwxr-xr-x 2 root root 4096 Dec 4 17:11 . drwxrwxrwt 17 root root 20480 Dec 4 17:10 .. -rw-r--r-- 1 root root 21481292 Jan 27 2021 acl2_8.3dfsg-2_amd64.deb /var/cache/apt: total 69356 drwxr-xr-x 3 root root 4096 Dec 4 15:00 . drwxr-xr-x 17 root root 4096 May 2 2022 .. drwxr-xr-x 3 root root 57344 Dec 4 09:27 archives -rw-r--r-- 1 root root 35492253 Dec 4 15:00 pkgcache.bin -rw-r--r-- 1 root root 35451043 Dec 4 15:00 srcpkgcache.bin /var/cache/apt/archives: total 68 drwxr-xr-x 3 root root 57344 Dec 4 09:27 . drwxr-xr-x 3 root root 4096 Dec 4 15:00 .. -rw-r----- 1 root root 0 Apr 16 2022 lock drwx------ 2 _apt root 4096 Dec 4 09:18 partial /var/cache/apt/archives/partial: total 64 drwx------ 2 _apt root 4096 Dec 4 09:18 . drwxr-xr-x 3 root root 57344 Dec 4 09:27 .. /tmp/acl2# Still no extra .bin files. Cheers, David.
[toc] | [prev] | [next] | [standalone]
| From | Albretch Mueller <lbrtchx@gmail.com> |
|---|---|
| Date | 2023-12-06 23:50 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HI8Sl-bOMe-3@gated-at.bofh.it> |
| In reply to | #264258 |
What I had been doing is use "depends" to get all dependencies and then download each of them. I think that is why I was getting those repeated binary files. I thought when you said "download" you just meant "download". lbrtchx
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2023-12-07 07:00 +0100 |
| Subject | Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package? |
| Message-ID | <HIfAt-bSR3-1@gated-at.bofh.it> |
| In reply to | #264357 |
On Wed 06 Dec 2023 at 22:40:23 (+0000), Albretch Mueller wrote:
> What I had been doing is use "depends" to get all dependencies
I did that.
> and
> then download each of them.
I did that too. Not all of them, of course, as I don't need or want
all those packages.
> I think that is why I was getting those
> repeated binary files.
You haven't posted what they look like or precisely when they appear:
at the depends stage or the download?
> I thought when you said "download" you just
> meant "download".
Well, yes, and I just posted it: apt-get download acl2
Usually I just use apt-get -d install acl2 but in the interests
of replication, I copied your "apt-get download" version.
My only guess, not knowing or seeing your system, is that your
packages cache /var/cache/apt/{src,}pkgcache.bin is screwed,
and so a new one has to be rebuilt every time.
Cheers,
David.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web