Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: provide a way to utilize /var/cache/dnf #7

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,30 @@ path = ${DEFAULT:basedir}/{arch}
path = ${DEFAULT:basedir}/sources
```


### Use repodata from dnf cache

You can easily use existing dnf cache. Let's make sure you have it:

```
$ dnf --releasever=26 --enablerepo fedora-source --enablerepo fedora makecache
```

Once that's done, there should be new directories created in `/var/cache/dnf`
named `fedora-<hash>` and `fedora-source-<hash>`. Let's use those in
`repos.cfg` configuration file:

```
[DEFAULT]
basedir = /var/cache/dnf

[base]
path = ${DEFAULT:basedir}/fedora-<hash>
[base-source]
path = ${DEFAULT:basedir}/fedora-source-<hash>
```


## Usage

```
Expand Down