Comments (5)
What distro did you base your bedrock installation on and what package manager are you using?
from pfetch-rs.
openSUSE Tumbleweed and original pfetch used Bedrock's package manager(pmm) to check how many packages are installed
from pfetch-rs.
Thank you for reporting this. I couldn't find the usage of either pmm
or zypper
in the original pfetch source code (these are all package managers checked) so it is strange that it counted them for you there. The solution seems to be to implement a zypper package count (ideally in libmacchina
).
from pfetch-rs.
I just looked more into this and this issue lead me down a rabbit hole.
libmacchina
already supports RPM package count, which is the backend used by zypper
by interacting with its sqlite database directly. However, it turns out that RPM also supports different database formats (bdb
and ndb
), where ndb
is used by OpenSUSE. It will probably be really hard to create an implementation that directly accesses this ndb file, as this is a RPM native database implementation with no libraries I could find supporting it (for more detail see Macchina-CLI/libmacchina#154).
So to get a package count on OpenSUSE, the options are to either change the RPM backend from ndb
to sqlite
(has to be done by the user), work on an implementation that gets the info from the bdb
file directly (really hard) or just invoke an rpm
process like the original pfetch did it (really slow).
I will probably implement the last one for now to have a package count on OpenSUSE (although being really slow) that can be disabled with the PF_FAST_PKG_COUNT
option similar to nix
.
from pfetch-rs.
With version 2.6.1, openSUSE package count has gotten significantly faster, as long as the rpm-devel
package is installed.
from pfetch-rs.
Related Issues (20)
- Windows: support more package managers HOT 9
- Feat: Homebrew package HOT 3
- Android os detection fails HOT 2
- bedrock linux isn't detected HOT 1
- Metrics wrong in readme HOT 2
- SteamOS ASCII HOT 8
- Vanilla OS Logo HOT 3
- MacOS: support macports package manager
- Fails to run on Windows 10 HOT 1
- Logo for Oracle Linux HOT 4
- Host and OS not correctly detected on macOS HOT 12
- Colors are darker on Windows Terminal HOT 1
- Add pfetch-rs to nixpkgs HOT 1
- Custom ASCII Art HOT 26
- ASCII not detected on MacOS HOT 1
- Package count displaying `0` on macOS HOT 1
- Most infos missing on freeBSD HOT 2
- Update the AUR pkgbuild to also conflict with "pfetch" as it does HOT 2
- Embed the logos in the binary HOT 3
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 pfetch-rs.