On Fri, Apr 1, 2016 at 8:12 AM, Pascal Terjan <pter...@gmail.com> wrote: > On 1 April 2016 at 13:05, Tomas Chvatal <tchva...@suse.cz> wrote: >> Hello, >> >> I was wondering if it would be possible to extend rpmdb to contain >> information about how package was pulled in the dependency graph. >> >> At this point we at openSUSE have some sort of solver trying to >> magically do it in zypper and you guys at Fedora have it in dnf. >> >> I would more like to see it tracked in the rpm because that way we >> could properly have all packages in the db, including the ones users >> installed via rpm commands and could see if they are >> a) directly requested by user >> b) just dependency of something and thus eligible for removal > > urpmi has its own tracking (a simple text file > /var/lib/rpm/installed-through-deps.list) but I think that would be > nice to have it in rpm directly so that it works whatever tool is used > to install the packages > >> I guess dnf/zypper would just flag them during install as True/False >> depending if they are direct request or dependency and for rpm we would >> always flag them as True for the solver as requested by user. >> >> Would something like this make sense? >> >> Cheers >> >> Tom
If distributions offer more than one way to install and manage software, then this would be absolutely beneficial to ensure that terrible things don't happen (like the package manager removing sqlite because it was upgraded by something other than it). Especially in Mageia, where we are preparing to move to DNF, and we are planning to use the Hif backend for PackageKit and will offer DNF as a fully supported option with Mageia 6, it would be extremely useful if the user-installed and dependency tracking could be moved to the rpmdb. Generally speaking, I'm not certain why this *isn't* in the rpmdb already, as most distributions have historically offered more than one way to install software (Fedora with yum, apt, and smart; openSUSE with zypper and yum; Mageia with urpmi and apt; PCLinuxOS with apt and smart; and so on). If not in the rpmdb, maybe another database managed by rpm could keep track of this information? -- 真実はいつも一つ!/ Always, there's only one truth! _______________________________________________ Rpm-ecosystem mailing list Rpm-ecosystem@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-ecosystem