TRACKER3-EXTRACT(1)

πŸ’– NAME πŸ’–

tracker3-extract β€” bestie, this is the one that pulls metadata out of a file. All of it. Whatever it can find. No cap. ✨


πŸŽ€ SYNOPSYS πŸŽ€

tracker3 extract FILE

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the vibe: tracker3 extract takes the file you hand it, reads it, and extracts literally any metadata it can from that file. Then it just… shows it to you, right there on standard output. Boom. 🫢

And the way it shows you? It's displayed as a SPARQL update command β€” like, a real one β€” that you can run against a SPARQL endpoint to update that endpoint's copy of the metadata. It's giving plug-and-play, honestly. πŸ’…

Now here's the lowkey genius part: the actual extraction is done by a separate process. Why? Because that isolates the process you're calling from any memory leaks or crashes in the libraries Tracker uses to extract metadata. So if something goes feral in the extraction libraries, your calling process is safe and unbothered. Iconic behaviour, truly. πŸ‘‘

Want the full lore? Go see the libtracker-extract reference documentation. πŸ“š


🌸 OPTIONS 🌸

  • -o, --output-format=<FORMAT> β€” pick which format the results come out in, bestie. Supported formats are sparql, turtle and json-ld. Choose wisely πŸ’…

πŸ”₯ EXAMPLES πŸ”₯

Using command line to extract metadata from a file

$ tracker3 extract /path/to/some/file.mp3

Look at her go. Slay. ⭐


🌈 ENVIRONMENT 🌈

  • G_MESSAGES_DEBUG β€” controls the verbose log output coming from GLib-based code. Pass G_MESSAGES_DEBUG=Tracker if you only wanna see Tracker-related logs (very demure, very mindful), or G_MESSAGES_DEBUG=all if you want everything dumped on you. πŸ™ˆ
  • TRACKER_DEBUG β€” turns on the more specialized debug output. You pass a comma-separated list of one or more keywords:
    • config β€” extractor configuration
    • statistics β€” show statistics about how many files were processed
    • status β€” log the status messages that are published over D-Bus

Stack 'em, comma 'em, go off. πŸŽ€


πŸ’œ SEE ALSO πŸ’œ


That's the whole thing, bestie β€” this page is from version 3.7.1, dated 02/03/2026, out of the Tracker manual. Go extract something. I'm obsessed. πŸ’–βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from