Comments (5)
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
from piu.
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
)
- can probably be simplified just to query not installed, unless command has a dependency such as pre-downloading a package (e.g.:
- 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
- Like note above, this will probably be package manager specific.
Research PKG MGR Invocations
-
apt
- Not Installed: Somewhat convoluted if trying to avoid dependencies like
apt-file
:sudo apt-get install --download-only $1
- download package- research needed to see if above provides the .deb file and path to pass to
dpkg-deb
dpkg-deb -c
- list files provided by .deb
- See also:
- Not Installed: Somewhat convoluted if trying to avoid dependencies like
-
apk
:apk info -L $1
-
pacman
--pacman -Fl $1
- More research needed, does
pacman -Fyy
need to be invoked specifically before querying an uninstalled package? - Ultimately went with downloading the package, then querying it instead of messing with syncing the files database
- More research needed, does
-
xpbs-
--xbps-query -Rf $1
-
dnf
--dnf -C repoquery -l $1
-
zypper
🚧 not implemented yet see: #15- Not Installed:
zypper in --download-only $1
find /var/cache/zypp -name $1
rpm -ql
- Installed:
find /var/cache/zypp -name $1
rpm -ql
- See also:
- Not Installed:
Add individual package manager functions
Implement piu files invocation
Final Testing
-
apt
-
apk
-
pacman
-
xpbs-
-
dnf
from piu.
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
from piu.
@beyondmeh the correct dnf
command is dnf -C repoquery -l $1
or dnf --cacheonly repoquery --list $1
.
Nice TODO. )
from piu.
Thank you for the clarification, I've updated the TODO
from piu.
Related Issues (14)
- Add Void Linux package management HOT 1
- OpenSUSE / zypper HOT 2
- Refactor Arch Linux's `piu files` HOT 4
- Suggestion: Organize package manager wrappers in their own files HOT 7
- Installation command does not work (Ubuntu 20.04.1 LTS)
- Create a logo to avoid the current non-free one
- Package for Homebrew HOT 3
- Manual installing doesn't work HOT 1
- piu's future!
- Manjaro Linux: `piu u` does not upgrade packages HOT 1
- Brew errors when passed -y HOT 1
- OSX Support (brew)
- Add macos support statement to README HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piu.