falconindy / expac

alpm data extraction utility
91 stars 15 forks source link

Add a --dbpath option #41

Closed gtnuux closed 2 months ago

gtnuux commented 2 years ago

It would be handy if expac supported a --dbpath option like pacman does. Currently, the only option is to create an alternative config file and then use the --config option. This option would be especially useful for distributions, such as Manjaro, which by default keep a separate up-to-date sync database so that you can view the update-able packages without executing the dreaded 'pacman -Sy' command.

This would be a fairly trivial change. I'd be happy to submit a pull request if you think it might be be a worthwhile addition.

-Jeff

falconindy commented 2 months ago

There's already an option to consume a different pacman.conf. I think that's the right level of granularity to support.