[Rpm-maint] [rpm] Multi-db /var/lib/rpm and /var/lib/appstore isolation skeleton (#40)
涩兔子 Leslie Zhai
notifications at github.com
Mon Jan 4 03:54:41 UTC 2016
> For now the App Store is simply located at /var/lib/appstore. Perhaps Apple will be unhappy with this.
+1
> Hey xiangzhai, db6 is released under AGPL. Nobody knows why Oracle did that but you might want to keep using db5.
Berkeley DB is really difficult to use, there are [sophisticated Wrapper](https://github.com/rpm-software-management/rpm/tree/master/lib/backend) and [Controller Interface](https://github.com/rpm-software-management/rpm/blob/master/lib/rpmdb.c) for rpm usage.
I prefer to use SQLite3, so I totally rewrote the pkgcache generation [APT-RPM](http://apt-rpm.org/scm/?p=apt.git;a=summary), it is quite simple to use SQLite table to store Package information about ***Requires*** and ***Provides*** for Building Dependency Tree ;-)
```
CREATE TABLE `Package` (
`Name` TEXT NOT NULL UNIQUE,
`Version` TEXT NOT NULL,
`Release` TEXT NOT NULL,
`Arch` TEXT NOT NULL,
`IGroup` TEXT NOT NULL,
`Uri` TEXT NOT NULL,
`Requires` TEXT,
`Provides` TEXT,
`Md5` TEXT,
`Status` INTEGER NOT NULL DEFAULT 0
);
```
---
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/40#issuecomment-168575518
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20160103/62a18258/attachment.html>
More information about the Rpm-maint
mailing list