I've updated https://github.com/vixfwis/pacman (and https://github.com/vixfwis/pacman-xdata/blob/main/xdata.patch, all changes from 6.1.0-3), with my latest usernotes code. I've also modified pactest.py to account for %XDATA% and added tests for user notes. All tests are passing, no valgrind leaks. Please take a look and let me know what you think new pacman notes interface: -S/-U --note <note> --note-extra <key>=<value> (default user note key is "note") -Q --note-search <regex> (will print notes if used) -D --delete-note <key> --note <note> --note-extra <key>=<value> -Qi will print "User Notes" field new libalpm exported functions: alpm_db_search_usernote alpm_get_userdata_prefix alpm_pkg_user_notes_update alpm_pkg_user_notes_delete alpm_pkg_xdata_free alpm_pkg_parse_xdata alpm_pkg_set_user_notes