Install of packages (RPM's Pre downloaded) using "dnf install *.rpm" delets the files from disk

Solution Verified - Updated -

Issue

  • When installing RPMs downloaded locally, the files are removed during the process:
[root@GT-RHEL8 rhel]# pwd
/tmp/rhel
[root@GT-RHEL8 rhel]# dnf install httpd --downloadonly --downloaddir=/tmp/rhel/
[root@GT-RHEL8 rhel]# ls -l
total 1804
-rw-------. 1 root root 1475135 Mar 30 14:26 httpd-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64.rpm
-rw-------. 1 root root   41091 Mar 30 14:26 httpd-filesystem-2.4.37-43.module+el8.5.0+14530+6f259f31.3.noarch.rpm
-rw-------. 1 root root  109931 Mar 30 14:26 httpd-tools-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64.rpm
-rw-------. 1 root root  158047 Mar 30 14:26 mod_http2-1.15.7-3.module+el8.4.0+8625+d397f3da.x86_64.rpm
-rw-------. 1 root root   29900 Mar 30 14:26 redhat-logos-httpd-84.5-1.el8.noarch.rpm
[root@GT-RHEL8 rhel]# dnf install httpd-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64.rpm  httpd-filesystem-2.4.37-43.module+el8.5.0+14530+6f259f31.3.noarch.rpm httpd-tools-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64.rpm  mod_http2-1.15.7-3.module+el8.4.0+8625+d397f3da.x86_64.rpm redhat-logos-httpd-84.5-1.el8.noarch.rpm
Updating Subscription Management repositories.
Last metadata expiration check: 0:07:01 ago on Wed 30 Mar 2022 02:22:30 PM EDT.
Dependencies resolved.
===================================================================================================================
 Package                  Architecture Version                                            Repository          Size
===================================================================================================================
Installing:
 httpd                    x86_64       2.4.37-43.module+el8.5.0+14530+6f259f31.3          @commandline       1.4 M
 httpd-filesystem         noarch       2.4.37-43.module+el8.5.0+14530+6f259f31.3          @commandline        40 k
 httpd-tools              x86_64       2.4.37-43.module+el8.5.0+14530+6f259f31.3          @commandline       107 k
 mod_http2                x86_64       1.15.7-3.module+el8.4.0+8625+d397f3da              @commandline       154 k
 redhat-logos-httpd       noarch       84.5-1.el8                                         @commandline        29 k
Enabling module streams:
 httpd                                 2.4

Transaction Summary
===================================================================================================================
Install  5 Packages

Total size: 1.7 M
Installed size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                           1/1
  Installing       : redhat-logos-httpd-84.5-1.el8.noarch                                                      1/5
  Installing       : httpd-tools-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64                              2/5
  Running scriptlet: httpd-filesystem-2.4.37-43.module+el8.5.0+14530+6f259f31.3.noarch                         3/5
  Installing       : httpd-filesystem-2.4.37-43.module+el8.5.0+14530+6f259f31.3.noarch                         3/5
  Installing       : mod_http2-1.15.7-3.module+el8.4.0+8625+d397f3da.x86_64                                    4/5
  Installing       : httpd-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64                                    5/5
  Running scriptlet: httpd-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64                                    5/5
  Verifying        : httpd-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64                                    1/5
  Verifying        : httpd-filesystem-2.4.37-43.module+el8.5.0+14530+6f259f31.3.noarch                         2/5
  Verifying        : httpd-tools-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64                              3/5
  Verifying        : mod_http2-1.15.7-3.module+el8.4.0+8625+d397f3da.x86_64                                    4/5
  Verifying        : redhat-logos-httpd-84.5-1.el8.noarch                                                      5/5
Installed products updated.

Installed:
  httpd-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64
  httpd-filesystem-2.4.37-43.module+el8.5.0+14530+6f259f31.3.noarch
  httpd-tools-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64
  mod_http2-1.15.7-3.module+el8.4.0+8625+d397f3da.x86_64
  redhat-logos-httpd-84.5-1.el8.noarch

Complete!
[root@GT-RHEL8 rhel]# ls -l
total 0
[root@GT-RHEL8 rhel]#


--->
---> Here's the last contents of the /var/log/dnf.log - it shows the rpm files being removed!  Why?
--->

[root@GT-RHEL8 rhel]# tail /var/log/dnf.log
2022-03-30T14:29:42-0400 INFO Running transaction
2022-03-30T14:29:43-0400 DDEBUG RPM transaction start.
2022-03-30T14:30:21-0400 DDEBUG RPM transaction over.
2022-03-30T14:30:21-0400 DDEBUG timer: verify transaction: 257 ms
2022-03-30T14:30:21-0400 DDEBUG timer: transaction: 38266 ms
2022-03-30T14:30:21-0400 DEBUG Completion plugin: Generating completion cache...
2022-03-30T14:30:21-0400 INFO Installed products updated.
2022-03-30T14:30:22-0400 DEBUG Installed: httpd-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64
2022-03-30T14:30:22-0400 DEBUG Installed: httpd-filesystem-2.4.37-43.module+el8.5.0+14530+6f259f31.3.noarch
2022-03-30T14:30:22-0400 DEBUG Installed: httpd-tools-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64
2022-03-30T14:30:22-0400 DEBUG Installed: mod_http2-1.15.7-3.module+el8.4.0+8625+d397f3da.x86_64
2022-03-30T14:30:22-0400 DEBUG Installed: redhat-logos-httpd-84.5-1.el8.noarch
2022-03-30T14:30:22-0400 INFO Complete!
2022-03-30T14:30:22-0400 DDEBUG Cleaning up.
2022-03-30T14:30:22-0400 DDEBUG /tmp/rhel/redhat-logos-httpd-84.5-1.el8.noarch.rpm removed
2022-03-30T14:30:22-0400 DDEBUG /tmp/rhel/mod_http2-1.15.7-3.module+el8.4.0+8625+d397f3da.x86_64.rpm removed
2022-03-30T14:30:22-0400 DDEBUG /tmp/rhel/httpd-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64.rpm removed
2022-03-30T14:30:22-0400 DDEBUG /tmp/rhel/httpd-tools-2.4.37-43.module+el8.5.0+14530+6f259f31.3.x86_64.rpm removed
2022-03-30T14:30:22-0400 DDEBUG /tmp/rhel/httpd-filesystem-2.4.37-43.module+el8.5.0+14530+6f259f31.3.noarch.rpm removed
---------------

Environment

  • Red Hat Enterprise Linux
  • RPM, yum

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content