Re: Search content (.h files) of all (-dev) packages?
On Thu, Nov 11, 2021 at 04:27:47PM +0100, Alexander Traud wrote:
> Question: Exists an (easy) way to 'grep' all headers files of all packages in Debian?
Codesearch indexes 𝐬𝐨𝐮𝐫𝐜𝐞 packages, it sounds like you want binaries.
wget http://ftp.debian.org/debian/dists/sid/main/Contents-amd64.gz
apt download `zgrep '\.h ' Contents-amd64.gz |rev|cut -d/ -f1|rev|sort|uniq`
... which fetches all packages that provide a .h file.
On the other hand Contents-source uses a tab and no section:
wget http://ftp.debian.org/debian/dists/sid/main/Contents-source.gz
apt source `zgrep '\.h\t' Contents-source.gz |cut -d$'\t' -f2|sort|uniq`
Meow!
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ “Exegi monumentum aere perennius” -- “I made a monument more
⢿⡄⠘⠷⠚⠋⠀ durable than bronze”.
⠈⠳⣄⠀⠀⠀⠀ -- Horace (65-8 BC), leaving the loo, constipated
Reply to: