An rpm query using an alternate file system tree specified with '--root' directive will create directories and RPM database files

Solution In Progress - Updated -

Issue

  • An rpm query using an alternate file system tree specified with --root directive will create directory structure and index files for database structure specified by --dbpath directive (which defaults to /var/lib/rpm).

    # ls -d /var/tmp/foo/var/lib/rpm/
    ls: cannot access '/var/tmp/foo': No such file or directory
    
    # rpm -qa --root /var/tmp/foo
    
    # ls -d /var/tmp/foo/var/lib/rpm/
    /var/tmp/foo/var/lib/rpm/
    

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • Red Hat Enterprise Linux (RHEL) 7
  • Red Hat Enterprise Linux (RHEL) 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In