Comments (4)
Thanks for the confirmation.
I'm not particularly motivated to work on an implementation for the ndb
database, because (1) I'd probably write something that's even slower than spawning the corresponding process and (2) I don't use SUSE technologies. I'm not opposed to including a new dependency for this, though.
from macchina.
@Gobidev Could this be related to Macchina-CLI/libmacchina#154?
from macchina.
Yes, openSUSE uses the ndb
database backend for RPM, which is why the file /var/lib/rpm/rpmdb.sqlite
doesn't exist and the package count fails. It might be possible to work around this by switching the backend to sqlite
manually:
To change the RPM database backend, you need to edit the /usr/lib/rpm/macros file and set the %_db_backend macro to the desired value (such as sqlite or ndb). You may also need to rebuild the RPM database using rpmdb --rebuilddb. However, note that changing the RPM database backend is not recommended unless you have a specific reason to do so. It may cause compatibility issues with other tools that rely on the RPM database format.
When trying this on openSUSE Tumbleweed, I got warning: invalid %_db_backend: sqlite
when trying to rebuild the database, so it looks like their build of RPM comes without sqlite
support.
Like I said in Macchina-CLI/libmacchina#154, the ideal solution would be to somehow get a package count out of the ndb
database, but this is a lot of work. Spawning an rpm
process is not really an option for libmacchina, as it takes ~500ms to execute on a modern system.
from macchina.
This was fixed in Macchina-CLI/libmacchina#159, although the rpm-devel
package will need to be installed for the detection to work once it is available in macchina.
from macchina.
Related Issues (20)
- [BUG] Typo in build instructions provided in wiki HOT 4
- How to insert a blank line before the key-values? HOT 10
- Modifying keys does nothing on macOS HOT 7
- Compile error, possibly two tui versions? HOT 34
- [BUG] Macchina 6.1.4 doesn't report version when running macchina --version HOT 1
- [BUG] Brew packages are displayed +1 HOT 7
- [BUG] Crashes on FreeBSD 13 HOT 8
- [BUG] Fails to build on Ubutnu HOT 19
- [BUG] Custom theme not being used HOT 3
- [BUG] Invalid variant: OperatingSystem HOT 10
- Terminal has weird name on NixOS with home-manager HOT 12
- [BUG] Proxmox VE is shown to be debian HOT 7
- [BUG] Crashes on cpu model "Intel Core i7 9xx (Nehalem Core i7, IBRS update)" HOT 7
- [feature request] Display total RAM memory in GB HOT 2
- Possible improvement to memory readout HOT 6
- [Feature Request] More standard and versioned release artifacts on github
- Accept disk path(s) to display usage of specified disk / multiple disks
- [BUG] Build failed with libgit2 1.6.4 on Arch Linux HOT 2
- [BUG] Fails to build with ratatui HOT 2
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 macchina.