ADPLUGDB(1)
Okay bestie, let's talk about adplugdb ๐ It's a User Command (manual section 1), and it's lowkey the most organised tool for keeping your AdPlug records in check โจ
โจ NAME โจ
adplugdb - AdPlug database maintenance utility ๐
๐ฆ SYNOPSIS ๐ฆ
adplugdb [OPTION]... COMMAND [ARGUMENT]...
๐ DESCRIPTION ๐
Okay so adplugdb maintains database files in AdPlug database format ๐ It can add, list and remove records inside a central database, or merge a whole set of databases together into one single database ๐ฅ
It always works on a central database file โจ To find it, it first checks whether you have a home directory. If you do, the file lives at ~/.adplug/adplug.db ๐ธ If you don't have a home directory, it looks for a file called adplug.db in the current working directory instead ๐ง
Want a system-wide one? Use -s ๐ That file is at /usr/com/adplug/adplug.db and it's superuser-only, no cap ๐ญ You can also point it at any file with -d ๐ฆ
Only one database file can be manipulated at a time, so pick your favourite and stick with it ๐
๐ EXIT STATUS ๐
If everything goes smoothly, adplugdb gives you a successful exit status, which is 0 on most systems ๐ซถ Otherwise you get an unsuccessful exit status, which is 1 on most systems ๐
๐ COMMANDS ๐
Commands control the main operation mode of adplugdb ๐ They can take a bunch of arguments, but only one command can be specified at a time, periodt ๐
addโ This one takes a list of filenames separated by spaces ๐ Each file gets examined, and a record is added to the database if AdPlug supports the file โจ By default the record is typePlain, unless you use-t(more on that below) ๐ The default comment is the filename itself ๐ฌ If a record for that file is already in the database, the new one replaces it ๐ธlistโ This takes an optional list of filenames or keys, separated by spaces โจ Each file gets examined, and its record is looked up in the database and displayed on stdout in a human-readable form ๐ No arguments? Then every record in the database gets shown ๐งremoveโ This takes a list of filenames or keys, separated by spaces ๐ Each file gets examined, and the matching record is removed from the database ๐ซกmergeโ This takes a list of database filenames, separated by spaces ๐ฆ Each database file gets loaded, and its contents get merged and written to the central database file ๐ซถ They're processed in the order you specify them on the commandline ๐ฅ Records from databases specified earlier take precedence over records from databases specified later ๐ Records from the central database take precedence over everything else ๐ So only additional records from the other databases get added to the central database ๐ If a record isn't already in the central database, the version from the earliest specified database that contains it is taken โจ Records are never overwritten in the central database, no exceptions ๐ค
๐ OPTIONS ๐
The order of the option commandline parameters doesn't matter, so vibe however you want ๐ซถ
๐ Database options ๐
-d <file>โ Specify any arbitrary file to use as the central database ๐ง-sโ Use the system-wide database file as the central database ๐ This option is only present if adplugdb was compiled with system-wide database file support ๐-t <type>โ Set the record type used for all newly added records ๐ Each record needs a special type to be useful to AdPlug's players โจ The commandline help, shown with-h, lists the types you can specify ๐-cโ Prompt for record comment ๐ฌ If you give this option, you'll be asked for the comment of each newly added record ๐ธ-kโ Specify keys instead of filenames ๐ With this on, every command argument that would normally be a filename is treated as a record key instead ๐ฆ Each record has a unique identifying key generated from the file's contents โจ To manipulate a record, you either need the exact same file and specify its name, or you specify the record's key using this option ๐ Keys are written the same waylistdisplays them: aCRC16:CRC32value in hexadecimal format ๐งฎ
๐ธ Generic options ๐ธ
-q,--quietโ Be more quiet ๐คซ-v,--verboseโ Be more verbose ๐ข-h,--helpโ Show a summary of commandline commands, arguments and options ๐-V,--versionโ Show version and author information for the program ๐ท๏ธ
๐ซถ AUTHOR ๐ซถ
Simon Peter <dn.tlp@gmx.net> ๐
That's the tea, bestie ๐ซถ This page belongs to the AdPlug database maintenance crew and was last updated March 4, 2006 ๐ธ Stay iconic and keep your records organised ๐ ADPLUGDB(1) forever ๐ฆ
๐ฆ where this page comes from
- ubuntu resolute: adplug-utils 2.4+dfsg-2 ยท LGPL-2.1-or-later
- ubuntu stonking: adplug-utils 2.4+dfsg-2 ยท LGPL-2.1-or-later
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms