On Tue 12 Jul 2022 at 20:52:47 (-0500), Igor Korot wrote:
> In order to test my program I ran "make install".
>
> This installed it into "/usr/local/{bin,lib}
>
> So now in order to run the program I need to update
> the ld library cache with "ldconfig".
>
> Unfortunately it is not available by default and trying to
> search for it produces following:
>
> [code]
> root@debian:/usr/local/lib#
> root@debian:/usr/local/lib# apt-file search ldconfig
> dist: /usr/share/dist/U/Oldconfig.U
> glibc-source: /usr/src/glibc/debian/patches/any/local-ldconfig-ignore-ld.so.diff
> glibc-source: /usr/src/glibc/debian/patches/any/local-ldconfig-multiarch.diff
> glibc-source: /usr/src/glibc/debian/patches/arm/unsubmitted-ldconfig-cache-abi.diff
> glibc-source: /usr/src/glibc/debian/patches/hurd-i386/local-enable-ldconfig.diff
> glibc-source: /usr/src/glibc/debian/patches/i386/unsubmitted-quiet-ldconfig.diff
> guix: /usr/share/guile/site/2.2/gnu/packages/patches/glibc-hidden-visibility-ldconfig.patch
> guix: /usr/share/guile/site/2.2/gnu/packages/patches/luajit-no_ldconfig.patch
Can I lead your eye to this line:
No. apt-file uses the Contents files in /var/lib/apt/lists/,
but IIRC they are not downloaded by default, so you need to
run update at least once after installing apt-file.
After that, you'll be running update occasionally, as part of
system maintenance, so the Contents will stay up-to-date.
Cheers,
David.