Question on apt-get update
kavitha R
kavitha.r0573 at gmail.com
Thu Sep 26 00:54:14 UTC 2019
"apt-get update" didn't update /var/lib/apt/lists/*_Packages file.
*It's very unclear when these files get updated.*
I modified one of the package version in /var/lib/apt/lists/*_Packages
file. Then I ran apt-get, but the my change is not reverted in
/var/lib/apt/lists/*_Packages.
I did notice that the /var/cache/apt/pkgcache.bin (and srcpkgcache.bin) are
updated everytime I run "apt-get update".
But the cache files are created based on /var/lib/apt/lists/*_Package files
so it make sense to download and update these file when we run "apt-get
update".
But it's not the existing behavior.
On Wed, Sep 25, 2019 at 5:40 PM Dan Kegel <dank at kegel.com> wrote:
> On Wed, Sep 25, 2019 at 6:19 AM kavitha R <kavitha.r0573 at gmail.com> wrote:
> > When we run "apt-get update", does it download all the packages
> information that will be stored in /var/lib/apt/lists/* _Packages file?
>
> I think so. You could use tcpdump or wireshark to confirm.
>
> > Why do we store the package full description in a different file?
>
> Possibly because apt was written in 1998 and it seemed like a good
> idea at the time?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20190925/5553117a/attachment.html>
More information about the Ubuntu-devel-discuss
mailing list