On Thu, Mar 13, 2025 at 04:29:56PM -0000, Greg wrote:
> On 2025-03-13, <to...@tuxteam.de> <to...@tuxteam.de> wrote:
> >
> > I thought that too, but according to the man page, apt-get update does
> > that job, too (I was always wondering to find my apt-file database
> > up to date and suspected some well-meaning cron job, but that seems
> > to be the secret :-)
> 
> apt-get update only updates the package lists from the repositories
> configured in /etc/apt/sources.list.
> 
> apt-file update fetches the latest file index for all packages.
> 
> IOW, you should run apt-get update (packages) before apt-file update
> (the files inside those packages).

Sigh. Kids, read the doco. From man apt-file (1)

       update
           This action that just calls apt update or apt-get update (depending
           on whether a tty is available).

           The only advantage using this over a regular apt update or apt-get
           update directly is for the case where you have configured an apt-
           file specific configuration (via the Dir::Etc::apt-file-main
           configuration option).  In that case, said configuration will be
           included automatically.

You don't need apt-file update anymore. Apt update or apt-get update do
the trick. (Apt-file update won't hurt, though).

Cheers
-- 
t
> 

Attachment: signature.asc
Description: PGP signature

Reply via email to