Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

piu files #14

Closed
abitrolly opened this issue Nov 30, 2020 · 5 comments
Closed

piu files #14

abitrolly opened this issue Nov 30, 2020 · 5 comments
Assignees
Milestone

Comments

@abitrolly
Copy link
Contributor

abitrolly commented Nov 30, 2020

What do you think about adding piu files for listing files provided by a package?

For dnf based installs it would be dnf repoquery -l with optional -C flag to avoid cache update.

@beyondmeh
Copy link
Owner

That seems like a great idea to add. I know pacman has similar functionality as well as apt. I'd be happy to accept a pull request, even if it's just for dnf.

Otherwise, I'll work on adding support in my free time

@beyondmeh beyondmeh self-assigned this Dec 1, 2020
@beyondmeh beyondmeh added this to the v2.0 milestone Dec 1, 2020
@beyondmeh
Copy link
Owner

beyondmeh commented Dec 1, 2020

TODO

  • List files provided by a package that are not already installed
  • Then, handle installed packages too (this part should be easier than the first)
    • can probably be simplified just to query not installed, unless command has a dependency such as pre-downloading a package (e.g.: apt)
  • Finally, provide a wrapper to handle the above two cases automatically
    • Like note above, this will probably be package manager specific. dnf doesn't need this

Research PKG MGR Invocations

Add individual package manager functions

Implement piu files invocation

Final Testing

  • apt
  • apk
  • pacman
  • xpbs-
  • dnf

@abitrolly
Copy link
Contributor Author

abitrolly commented Dec 1, 2020

@beyondmeh the correct dnf command is dnf -C repoquery -l $1 or dnf --cacheonly repoquery --list $1.

Nice TODO. )

@beyondmeh
Copy link
Owner

Thank you for the clarification, I've updated the TODO

@beyondmeh
Copy link
Owner

piu files has been implemented for all of the supported package managers!

  • I'm not happy with the Arch Linux code, but "rather something than nothing". I'd love some help refactoring it.
  • Alpine Linux's code has some quirks, but the issues are upstream with apk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants