Skip to content

Commit dd3896f

Browse files
RPM installation guide: explain how to clean dnf cache(s)
1 parent 8ca9e8b commit dd3896f

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

docs/install-rpm.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,26 @@ dnf install -y ${RabbitMQServerPackageFilename({packageType: 'rpm-el8'})}`}
480480
</CodeBlock>
481481

482482

483+
## How to Clearn Local dnf Cache {#clear-cache}
484+
485+
In some rare cases new versions available in RPM repositories will not be visible
486+
to `dnf install` even after running `dnf update`.
487+
488+
In this case, clearing the local cache may be necessary:
489+
490+
```bash
491+
dnf clean metadata
492+
493+
dnf clean dbcache
494+
495+
dnf clean all
496+
```
497+
498+
After clearing the cache, `dnf` will have to re-download all metadata from all
499+
repositories, including the standard ones for the distribution. This can take
500+
some time.
501+
502+
483503
## Direct Downloads {#downloads}
484504

485505
In some cases it may be easier to download the package and install it manually. The package can be downloaded

versioned_docs/version-3.13/install-rpm.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,26 @@ dnf install -y ${RabbitMQServerPackageFilename({packageType: 'rpm-el8'})}`}
480480
</CodeBlock>
481481

482482

483+
## How to Clearn Local dnf Cache {#clear-cache}
484+
485+
In some rare cases new versions available in RPM repositories will not be visible
486+
to `dnf install` even after running `dnf update`.
487+
488+
In this case, clearing the local cache may be necessary:
489+
490+
```bash
491+
dnf clean metadata
492+
493+
dnf clean dbcache
494+
495+
dnf clean all
496+
```
497+
498+
After clearing the cache, `dnf` will have to re-download all metadata from all
499+
repositories, including the standard ones for the distribution. This can take
500+
some time.
501+
502+
483503
## Direct Downloads {#downloads}
484504

485505
In some cases it may be easier to download the package and install it manually. The package can be downloaded

versioned_docs/version-4.0/install-rpm.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,26 @@ dnf install -y ${RabbitMQServerPackageFilename({packageType: 'rpm-el8'})}`}
480480
</CodeBlock>
481481

482482

483+
## How to Clearn Local dnf Cache {#clear-cache}
484+
485+
In some rare cases new versions available in RPM repositories will not be visible
486+
to `dnf install` even after running `dnf update`.
487+
488+
In this case, clearing the local cache may be necessary:
489+
490+
```bash
491+
dnf clean metadata
492+
493+
dnf clean dbcache
494+
495+
dnf clean all
496+
```
497+
498+
After clearing the cache, `dnf` will have to re-download all metadata from all
499+
repositories, including the standard ones for the distribution. This can take
500+
some time.
501+
502+
483503
## Direct Downloads {#downloads}
484504

485505
In some cases it may be easier to download the package and install it manually. The package can be downloaded

0 commit comments

Comments
 (0)