[opensuse-factory] rpm - list all files

Since a recent rpm change, these commands (run as root) show no results: 1> rpm -qa # show all installed packages 1> rpm -qla # list all files in all installed packages Is this intended, or a bug? -- Christoph Feck -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
1> rpm -qa # show all installed packages 1> rpm -qla # list all files in all installed packages
Is this intended, or a bug?
clearly a bug (on your system; I can't reproduce it) both commands work as expected. This sounds like you have a corrupt rpm database. Cheers, Dominique

On 04/02/20 12:43, Dominique Leuenberger / DimStar wrote:
On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
1> rpm -qa # show all installed packages 1> rpm -qla # list all files in all installed packages
Is this intended, or a bug?
clearly a bug (on your system; I can't reproduce it)
both commands work as expected.
This sounds like you have a corrupt rpm database.
What else besides 'rpm --rebuilddb' could I do to fix it? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
Ouch, never mind, there was another update for rpm pending, which resolved the issue. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Thu, Apr 02, 2020 at 12:46:59PM +0200, Christoph Feck wrote:
On 04/02/20 12:43, Dominique Leuenberger / DimStar wrote:
On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
1> rpm -qa # show all installed packages 1> rpm -qla # list all files in all installed packages
Is this intended, or a bug?
clearly a bug (on your system; I can't reproduce it)
both commands work as expected.
This sounds like you have a corrupt rpm database.
What else besides 'rpm --rebuilddb' could I do to fix it?
Is /var/lib/rpm a symlink to ../../usr/lib/sysimage/rpm as it ought to be? If not, you have two databases and need to find out which one to keep. (There was a bad interaction between rpm and libzypp that caused this at one point in time. This is already fixed now.) Cheers, Michael. -- Michael Schroeder SUSE Software Solutions Germany GmbH mls@suse.de GF: Felix Imendoerffer HRB 36809, AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Hi, Am Donnerstag, 2. April 2020, 12:46:59 CEST schrieb Christoph Feck:
On 04/02/20 12:43, Dominique Leuenberger / DimStar wrote:
On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
1> rpm -qa # show all installed packages 1> rpm -qla # list all files in all installed packages
Is this intended, or a bug?
clearly a bug (on your system; I can't reproduce it)
both commands work as expected.
This sounds like you have a corrupt rpm database.
What else besides 'rpm --rebuilddb' could I do to fix it?
Some useful information for tracking this down would be printed by: rpm -vv -qi aaa_base rpm --eval %_dbpath rpm --eval %_db_backend stat /var/lib/rpm ls -lR /var/lib/rpm/ /usr/lib/sysimage/rpm/ Cheers, Fabian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am 02.04.20 um 12:58 schrieb Fabian Vogt:
Hi,
Am Donnerstag, 2. April 2020, 12:46:59 CEST schrieb Christoph Feck:
On 04/02/20 12:43, Dominique Leuenberger / DimStar wrote:
On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
1> rpm -qa # show all installed packages
Some useful information for tracking this down would be printed by:
rpm -vv -qi aaa_base
If no package is installed (according to rpm), there is also no aaa_base to be shown ;-) -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Hi, Am Donnerstag, 2. April 2020, 16:05:55 CEST schrieb Stefan Seyfried:
Am 02.04.20 um 12:58 schrieb Fabian Vogt:
Hi,
Am Donnerstag, 2. April 2020, 12:46:59 CEST schrieb Christoph Feck:
On 04/02/20 12:43, Dominique Leuenberger / DimStar wrote:
On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
1> rpm -qa # show all installed packages
Some useful information for tracking this down would be printed by:
rpm -vv -qi aaa_base
If no package is installed (according to rpm), there is also no aaa_base to be shown ;-)
Yup, but the "-vv" makes rpm print some useful diagnostic output: ufdio: 1 reads, 19451 total bytes in 0.000029 secs D: loading keyring from pubkeys in /usr/lib/sysimage/rpm/pubkeys/*.key D: couldn't find any keys in /usr/lib/sysimage/rpm/pubkeys/*.key D: loading keyring from rpmdb D: opening db environment /usr/lib/sysimage/rpm cdb:private:0x201 D: opening db index /usr/lib/sysimage/rpm/Packages 0x400 mode=0x0 D: locked db index /usr/lib/sysimage/rpm/Packages D: opening db index /usr/lib/sysimage/rpm/Name nofsync:0x400 mode=0x0 D: read h# 93 ... There has to be a query which does a database access and rpm -vv -qi imprettysurethispackagedoesnotexist would work the same way. Cheers, Fabian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am 02.04.20 um 16:10 schrieb Fabian Vogt:
Hi,
Am Donnerstag, 2. April 2020, 16:05:55 CEST schrieb Stefan Seyfried:
Am 02.04.20 um 12:58 schrieb Fabian Vogt:
Hi,
Am Donnerstag, 2. April 2020, 12:46:59 CEST schrieb Christoph Feck:
On 04/02/20 12:43, Dominique Leuenberger / DimStar wrote:
On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
1> rpm -qa # show all installed packages
Some useful information for tracking this down would be printed by:
rpm -vv -qi aaa_base
If no package is installed (according to rpm), there is also no aaa_base to be shown ;-)
Yup, but the "-vv" makes rpm print some useful diagnostic output:
Ok, then I immediately retract my stupid question ;-)
There has to be a query which does a database access and rpm -vv -qi imprettysurethispackagedoesnotexist would work the same way.
Something new to learn every day ;-) Thanks! -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Am Donnerstag, 2. April 2020, 16:13:46 CEST schrieb Stefan Seyfried:
Am 02.04.20 um 16:10 schrieb Fabian Vogt:
Hi,
Am Donnerstag, 2. April 2020, 16:05:55 CEST schrieb Stefan Seyfried:
Am 02.04.20 um 12:58 schrieb Fabian Vogt:
Hi,
Am Donnerstag, 2. April 2020, 12:46:59 CEST schrieb Christoph Feck:
On 04/02/20 12:43, Dominique Leuenberger / DimStar wrote:
On Thu, 2020-04-02 at 12:35 +0200, Christoph Feck wrote: > Since a recent rpm change, these commands (run as root) show no > results: > > 1> rpm -qa # show all installed packages
Some useful information for tracking this down would be printed by:
rpm -vv -qi aaa_base
If no package is installed (according to rpm), there is also no aaa_base to be shown ;-)
Yup, but the "-vv" makes rpm print some useful diagnostic output: Ok, then I immediately retract my stupid question ;-)
There has to be a query which does a database access and rpm -vv -qi imprettysurethispackagedoesnotexist would work the same way.
Something new to learn every day ;-)
Yep. I immediately put Fabian's rpm commands to my internal rpm trouble shooting notes! Thanks Fabian, much appreciated. Cheers, Pete -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Apr 02 2020, Christoph Feck wrote:
Since a recent rpm change, these commands (run as root) show no results:
1> rpm -qa # show all installed packages 1> rpm -qla # list all files in all installed packages
Is this intended, or a bug?
Does it help to run rpm --rebuilddb? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (7)
-
Andreas Schwab
-
Christoph Feck
-
Dominique Leuenberger / DimStar
-
Fabian Vogt
-
Hans-Peter Jansen
-
Michael Schroeder
-
Stefan Seyfried