update-nut(1)

πŸ’– update-nut β€” create or upgrade NUT database πŸ’–

okay bestie, this is the manual page for update-nut, section 1 of the manual, and it is genuinely so much simpler than it sounds, i promise 🫢


✨ NAME ✨

update-nut β€” create or upgrade NUT database


πŸ¦‹ SYNOPSIS πŸ¦‹

update-nut

that's it. that's the whole thing. no flags, no args, no drama. iconic behavior honestly πŸ’…


🌸 DESCRIPTION 🌸

okay so first things first: go download the full ascii version of the USDA Nutrient Database. you can grab it from http://www.ars.usda.gov/nutrientdata or from http://nut.sourceforge.net. then unzip it in some directory. any directory. your call, bestie πŸŽ€

then you run update-nut, and it creates or upgrades the NUT code in the SQLite database that runs the application β€” and it does this in the same directory as the USDA Nutrient Database. so like, keep them together, they're a package deal fr fr.

heads up: if you're upgrading, you have to be in the same directory as the nut.db file. no cap, that part matters.

after this step, update-nut is not required for anything. like, at all. it did its job, it's retiring, we love a queen who knows when to exit the group chat πŸ‘‘

and here's the vibe: updating the NUT code with update-nut is independent of updating the USDA database. those are two separate situations. that said β€” and this is the real tea β€” it is certainly possible that the USDA could change the format of their tables, in which case a later version of update-nut would be required in order to read their tables or display new nutrients. so, y'know. keep an eye out. πŸ‘€

the main idea, and honestly this is the whole philosophy here: your personal data is permanent, even though the application code and the USDA tables can change as necessary. your data is the main character. the code is just supporting cast. periodt. πŸ’–


πŸŽ€ FILES πŸŽ€

  • nut.db β€” All personal data, the USDA Nutrient Database, and Tcl scripts
  • nut.db-shm β€” Database shared memory area
  • nut.db-wal β€” Database write-ahead log
  • update-nut β€” Tcl script to create or update the NUT code in the database
  • nut β€” Tcl script to start the NUTsqlite program

πŸ‘‘ AUTHOR πŸ‘‘

Jim Jozwiak (jozwiak@gmail.com, av832@lafn.org) http://nut.sourceforge.net/


🌈 COPYING 🌈

Copyright (C) 1996-2016 by Jim Jozwiak. This manual page was written by Γ‰tienne Mollier <etienne.mollier@mailoo.org> for the Debian distribution.


okay that's the whole page bestie, go forth and update your nutrient database, you've got this πŸ’œβœ¨

update-nut(1) Β· from the 2020.11.04 era Β· mwah, love u, bye πŸ¦‹πŸŒΈ